base16-schemes: unstable-2024-06-21 -> unstable-2024-11-12
[NixPkgs.git] / pkgs / by-name / en / envfs / package.nix
blobc5de89fdfffd67f209b97188018d0f9319e76581
1 { rustPlatform, lib, fetchFromGitHub, nixosTests }:
2 rustPlatform.buildRustPackage rec {
3   pname = "envfs";
4   version = "1.0.6";
5   src = fetchFromGitHub {
6     owner = "Mic92";
7     repo = "envfs";
8     rev = version;
9     hash = "sha256-kOfnKguvJQHW/AfQOetxVefjoEj7ec5ew6fumhOwP08=";
10   };
11   cargoHash = "sha256-isx4jBsA3HX6124R3qtwTqH5fLTAP7xdQD5bTzCAybo=";
13   passthru.tests = {
14     envfs = nixosTests.envfs;
15   };
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   };