nur-packages

My NUR packages
git clone git://git.sikmir.ru/nur-packages
Log | Files | Refs | README | LICENSE

default.nix (838B)


      1 {
      2   lib,
      3   stdenv,
      4   rustPlatform,
      5   fetchFromGitHub,
      6   darwin,
      7 }:
      8 
      9 rustPlatform.buildRustPackage {
     10   pname = "ttb";
     11   version = "0-unstable-2022-12-14";
     12 
     13   src = fetchFromGitHub {
     14     owner = "TheOpenDictionary";
     15     repo = "ttb";
     16     rev = "535e99f3607ef9b03a2e9b7ef05ab9a78448ef1a";
     17     hash = "sha256-D5XOqbgpLkUKFOJe9kArARTMd3sM2rOFwJTtwKe6Ypk=";
     18   };
     19 
     20   cargoLock.lockFile = ./Cargo.lock;
     21 
     22   postPatch = ''
     23     ln -s ${./Cargo.lock} Cargo.lock
     24   '';
     25 
     26   buildInputs = lib.optional stdenv.isDarwin darwin.apple_sdk.frameworks.SystemConfiguration;
     27 
     28   meta = {
     29     description = "A lightning-fast tool for querying Tatoebe from the command-line";
     30     homepage = "https://github.com/TheOpenDictionary/ttb";
     31     license = lib.licenses.free;
     32     maintainers = [ lib.maintainers.sikmir ];
     33     mainProgram = "ttb";
     34     broken = true;
     35   };
     36 }