2022-12-28 21:21:41 +00:00
|
|
|
{ rustPlatform, lib, fetchFromGitHub, nixosTests }:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "envfs";
|
2023-07-15 17:15:38 +00:00
|
|
|
version = "1.0.1";
|
2022-12-28 21:21:41 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "Mic92";
|
|
|
|
repo = "envfs";
|
|
|
|
rev = version;
|
2023-07-15 17:15:38 +00:00
|
|
|
hash = "sha256-ttW1NUCtwnjAoiu7QgLGrlAB2PyY4oXm91LpWhbz8qk=";
|
2022-12-28 21:21:41 +00:00
|
|
|
};
|
2023-07-15 17:15:38 +00:00
|
|
|
cargoHash = "sha256-BgXKwKD6w/GraBQEq61D7S7m2Q9TnkXNFJEIgDYo9L4=";
|
2022-12-28 21:21:41 +00:00
|
|
|
|
|
|
|
passthru.tests = {
|
|
|
|
envfs = nixosTests.envfs;
|
|
|
|
};
|
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
ln -s envfs $out/bin/mount.envfs
|
|
|
|
ln -s envfs $out/bin/mount.fuse.envfs
|
|
|
|
'';
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Fuse filesystem that returns symlinks to executables based on the PATH of the requesting process.";
|
|
|
|
homepage = "https://github.com/Mic92/envfs";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ mic92 ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|