nixpkgs/pkgs/tools/filesystems/envfs/default.nix

28 lines
820 B
Nix

{ rustPlatform, lib, fetchFromGitHub, nixosTests }:
rustPlatform.buildRustPackage rec {
pname = "envfs";
version = "1.0.2";
src = fetchFromGitHub {
owner = "Mic92";
repo = "envfs";
rev = version;
hash = "sha256-MfKOfI21sRNEBX+v0Wto1YhzrPu3JI7Q4AU333utGpk=";
};
cargoHash = "sha256-vMXmv8p839EPLCwX6So5ebgr5Z68AqdSaLiWqDoBAt4=";
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;
};
}