2022-12-28 15:09:54 +01:00
|
|
|
{ rustPlatform, lib, fetchFromGitHub, nixosTests }:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "envfs";
|
2024-03-19 11:06:21 +01:00
|
|
|
version = "1.0.6";
|
2022-12-28 15:09:54 +01:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "Mic92";
|
|
|
|
repo = "envfs";
|
|
|
|
rev = version;
|
2024-03-19 11:06:21 +01:00
|
|
|
hash = "sha256-kOfnKguvJQHW/AfQOetxVefjoEj7ec5ew6fumhOwP08=";
|
2022-12-28 15:09:54 +01:00
|
|
|
};
|
2024-03-19 11:06:21 +01:00
|
|
|
cargoHash = "sha256-isx4jBsA3HX6124R3qtwTqH5fLTAP7xdQD5bTzCAybo=";
|
2022-12-28 15:09:54 +01: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; {
|
2023-12-29 16:12:56 +01:00
|
|
|
description = "Fuse filesystem that returns symlinks to executables based on the PATH of the requesting process";
|
2022-12-28 15:09:54 +01:00
|
|
|
homepage = "https://github.com/Mic92/envfs";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ mic92 ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|