user/packages/interactively/default.nix (view raw)
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 | { stdenv
, fetchFromGitHub
, coreutils
, fzf
}:
stdenv.mkDerivation {
pname = "interactively";
version = "unstable-2023-04-19";
src = fetchFromGitHub {
owner = "bigH";
repo = "interactively";
rev = "c09f14b4e572053eb8e1e8dfb0b74ee66a66c07f";
hash = "sha256-HFCTX9lHiLymSyJMiFYSKG+7TCSb9YpmtC+I7Jf+zUg=";
};
fixupPhase = ''
patchShebangs bin/interactively
substituteInPlace bin/interactively \
--replace fzf ${fzf}/bin/fzf \
--replace tac ${coreutils}/bin/tac
'';
installPhase = ''
mkdir -p $out/bin
cp bin/interactively $out/bin/
chmod +x $out/bin/interactively
'';
meta = {
description = "";
homepage = "https://github.com/bigH/interactively";
};
}
|