Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at devShellTools-shell 41 lines 935 B view raw
1{ 2 lib, 3 fetchFromGitHub, 4 rustPlatform, 5 nixosTests, 6 nix-update-script, 7}: 8rustPlatform.buildRustPackage (finalAttrs: { 9 pname = "envfs"; 10 version = "1.1.0"; 11 12 src = fetchFromGitHub { 13 owner = "Mic92"; 14 repo = "envfs"; 15 rev = finalAttrs.version; 16 hash = "sha256-bpATdm/lB+zomPYGCxA7omWK/SKPIaqr94J+fjMaXfE="; 17 }; 18 19 cargoHash = "sha256-nMUdAFRHJZDwvLASBVykzzkwk3HxslDehqqm1U99qYg="; 20 21 postInstall = '' 22 ln -s envfs $out/bin/mount.envfs 23 ln -s envfs $out/bin/mount.fuse.envfs 24 ''; 25 26 passthru = { 27 tests = { 28 envfs = nixosTests.envfs; 29 }; 30 31 updateScript = nix-update-script { }; 32 }; 33 34 meta = { 35 description = "Fuse filesystem that returns symlinks to executables based on the PATH of the requesting process"; 36 homepage = "https://github.com/Mic92/envfs"; 37 license = lib.licenses.mit; 38 maintainers = with lib.maintainers; [ mic92 ]; 39 platforms = lib.platforms.linux; 40 }; 41})