mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-04-14 04:58:37 +00:00
parent
eb88cf6eed
commit
2a42dff30e
@ -2,28 +2,29 @@
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "mtm";
|
||||
version = "1.2.0";
|
||||
version = "1.2.1";
|
||||
|
||||
outputs = [ "out" "terminfo" ];
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "deadpixi";
|
||||
repo = pname;
|
||||
rev = version;
|
||||
sha256 = "0b2arkmbmabxmrqxlpvvvhll2qx0xgj7r4r6p0ymnm9p70idris4";
|
||||
sha256 = "0gibrvah059z37jvn1qs4b6kvd4ivk2mfihmcpgx1vz6yg70zghv";
|
||||
};
|
||||
|
||||
buildInputs = [ ncurses ];
|
||||
|
||||
preBuild = ''
|
||||
substituteInPlace Makefile --replace "strip -s mtm" ""
|
||||
makeFlags = [ "DESTDIR=${placeholder "out"}" "MANDIR=${placeholder "out"}/share/man/man1" ];
|
||||
|
||||
preInstall = ''
|
||||
mkdir -p $out/bin/ $out/share/man/man1
|
||||
'';
|
||||
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
|
||||
install -Dm755 -t $out/bin mtm
|
||||
install -Dm644 -t $out/share/man/man1 mtm.1
|
||||
|
||||
runHook postInstall
|
||||
postInstall = ''
|
||||
mkdir -p $terminfo/share/terminfo $out/nix-support
|
||||
tic -x -o $terminfo/share/terminfo mtm.ti
|
||||
echo "$terminfo" >> $out/nix-support/propagated-user-env-packages
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
|
Loading…
Reference in New Issue
Block a user