mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-04-17 05:38:38 +00:00
envfs: cleanup, add nix-update-script
Move to finalAttrs, remove with lib; Signed-off-by: John Titor <50095635+JohnRTitor@users.noreply.github.com>
This commit is contained in:
parent
92729eb5e0
commit
80b264337d
@ -1,34 +1,42 @@
|
||||
{
|
||||
rustPlatform,
|
||||
lib,
|
||||
fetchFromGitHub,
|
||||
rustPlatform,
|
||||
nixosTests,
|
||||
nix-update-script,
|
||||
}:
|
||||
rustPlatform.buildRustPackage rec {
|
||||
rustPlatform.buildRustPackage (finalAttrs: {
|
||||
pname = "envfs";
|
||||
version = "1.1.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "Mic92";
|
||||
repo = "envfs";
|
||||
rev = version;
|
||||
rev = finalAttrs.version;
|
||||
hash = "sha256-bpATdm/lB+zomPYGCxA7omWK/SKPIaqr94J+fjMaXfE=";
|
||||
};
|
||||
|
||||
useFetchCargoVendor = true;
|
||||
cargoHash = "sha256-nMUdAFRHJZDwvLASBVykzzkwk3HxslDehqqm1U99qYg=";
|
||||
|
||||
passthru.tests = {
|
||||
envfs = nixosTests.envfs;
|
||||
};
|
||||
|
||||
postInstall = ''
|
||||
ln -s envfs $out/bin/mount.envfs
|
||||
ln -s envfs $out/bin/mount.fuse.envfs
|
||||
'';
|
||||
meta = with lib; {
|
||||
|
||||
passthru = {
|
||||
tests = {
|
||||
envfs = nixosTests.envfs;
|
||||
};
|
||||
|
||||
updateScript = nix-update-script { };
|
||||
};
|
||||
|
||||
meta = {
|
||||
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;
|
||||
license = lib.licenses.mit;
|
||||
maintainers = with lib.maintainers; [ mic92 ];
|
||||
platforms = lib.platforms.linux;
|
||||
};
|
||||
}
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user