depot/third_party/nixpkgs/pkgs/tools/admin/try/default.nix
Default email 5e7c2d6cef Project import generated by Copybara.
GitOrigin-RevId: f99e5f03cc0aa231ab5950a15ed02afec45ed51a
2023-10-09 21:29:22 +02:00

25 lines
839 B
Nix

{ stdenvNoCC, lib, fetchFromGitHub, fuse-overlayfs, util-linux, makeWrapper }:
stdenvNoCC.mkDerivation rec {
pname = "try";
version = "0.2.0";
src = fetchFromGitHub {
owner = "binpash";
repo = pname;
rev = "v${version}";
hash = "sha256-2EDRVwW4XzQhd7rAM2rDuR94Fkaq4pH5RTooFEBBh5g=";
};
nativeBuildInputs = [ makeWrapper ];
installPhase = ''
runHook preInstall
install -Dt $out/bin try
wrapProgram $out/bin/try --prefix PATH : ${lib.makeBinPath [ fuse-overlayfs util-linux ]}
runHook postInstall
'';
meta = with lib;{
homepage = "https://github/binpash/try";
description = "Lets you run a command and inspect its effects before changing your live system";
maintainers = with maintainers; [ pasqui23 ];
license = with licenses; [ mit ];
platforms = platforms.linux;
};
}