nur-packages

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

default.nix (723B)


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