2023-07-15 17:15:38 +00:00
|
|
|
{ stdenvNoCC, lib, fetchFromGitHub, fuse-overlayfs, util-linux, makeWrapper }:
|
|
|
|
stdenvNoCC.mkDerivation rec {
|
|
|
|
pname = "try";
|
2023-10-09 19:29:22 +00:00
|
|
|
version = "0.2.0";
|
2023-07-15 17:15:38 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "binpash";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2023-10-09 19:29:22 +00:00
|
|
|
hash = "sha256-2EDRVwW4XzQhd7rAM2rDuR94Fkaq4pH5RTooFEBBh5g=";
|
2023-07-15 17:15:38 +00:00
|
|
|
};
|
|
|
|
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;{
|
2023-11-16 04:20:00 +00:00
|
|
|
homepage = "https://github.com/binpash/try";
|
2023-07-15 17:15:38 +00:00
|
|
|
description = "Lets you run a command and inspect its effects before changing your live system";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "try";
|
2023-07-15 17:15:38 +00:00
|
|
|
maintainers = with maintainers; [ pasqui23 ];
|
|
|
|
license = with licenses; [ mit ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|