nur-packages

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

default.nix (767B)


      1 {
      2   lib,
      3   stdenv,
      4   rustPlatform,
      5   fetchFromGitHub,
      6   fuse3,
      7   macfuse-stubs,
      8   pkg-config,
      9 }:
     10 
     11 let
     12   fuse = if stdenv.isDarwin then macfuse-stubs else fuse3;
     13 in
     14 rustPlatform.buildRustPackage rec {
     15   pname = "ffs";
     16   version = "0.1.2";
     17 
     18   src = fetchFromGitHub {
     19     owner = "mgree";
     20     repo = "ffs";
     21     rev = "v${version}";
     22     hash = "sha256-7hYH+utmAoWtV2xZLvSnE8779qKvzIJVJt9mNwH82sY=";
     23   };
     24 
     25   cargoHash = "sha256-otZIFcXvSXYdd23jlSlXn5ExoUhTBCRnnqhO4ksb3Pw=";
     26 
     27   nativeBuildInputs = [ pkg-config ];
     28 
     29   buildInputs = [ fuse ];
     30 
     31   doCheck = false;
     32 
     33   meta = {
     34     description = "the file filesystem";
     35     homepage = "https://github.com/mgree/ffs";
     36     license = lib.licenses.gpl3;
     37     maintainers = [ lib.maintainers.sikmir ];
     38     mainProgram = "ffs";
     39   };
     40 }