Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ rustPlatform, lib, fetchFromGitHub, nixosTests }: 2rustPlatform.buildRustPackage rec { 3 pname = "envfs"; 4 version = "1.0.0"; 5 src = fetchFromGitHub { 6 owner = "Mic92"; 7 repo = "envfs"; 8 rev = version; 9 hash = "sha256-aF8V1LwPGifFWoVxM0ydOnTX1pDVJ6HXevTxADJ/rsw="; 10 }; 11 cargoHash = "sha256-kw56tbe5zvWY5bI//dUqR1Rlumz8kOG4HeXiyEyL0I0="; 12 13 passthru.tests = { 14 envfs = nixosTests.envfs; 15 }; 16 17 postInstall = '' 18 ln -s envfs $out/bin/mount.envfs 19 ln -s envfs $out/bin/mount.fuse.envfs 20 ''; 21 meta = with lib; { 22 description = "Fuse filesystem that returns symlinks to executables based on the PATH of the requesting process."; 23 homepage = "https://github.com/Mic92/envfs"; 24 license = licenses.mit; 25 maintainers = with maintainers; [ mic92 ]; 26 platforms = platforms.linux; 27 }; 28}