lol

mtm: 1.2.0 -> 1.2.1

https://github.com/deadpixi/mtm/releases/tag/1.2.1

+12 -11
+12 -11
pkgs/tools/misc/mtm/default.nix
··· 2 2 3 3 stdenv.mkDerivation rec { 4 4 pname = "mtm"; 5 - version = "1.2.0"; 5 + version = "1.2.1"; 6 + 7 + outputs = [ "out" "terminfo" ]; 6 8 7 9 src = fetchFromGitHub { 8 10 owner = "deadpixi"; 9 11 repo = pname; 10 12 rev = version; 11 - sha256 = "0b2arkmbmabxmrqxlpvvvhll2qx0xgj7r4r6p0ymnm9p70idris4"; 13 + sha256 = "0gibrvah059z37jvn1qs4b6kvd4ivk2mfihmcpgx1vz6yg70zghv"; 12 14 }; 13 15 14 16 buildInputs = [ ncurses ]; 15 17 16 - preBuild = '' 17 - substituteInPlace Makefile --replace "strip -s mtm" "" 18 + makeFlags = [ "DESTDIR=${placeholder "out"}" "MANDIR=${placeholder "out"}/share/man/man1" ]; 19 + 20 + preInstall = '' 21 + mkdir -p $out/bin/ $out/share/man/man1 18 22 ''; 19 23 20 - installPhase = '' 21 - runHook preInstall 22 - 23 - install -Dm755 -t $out/bin mtm 24 - install -Dm644 -t $out/share/man/man1 mtm.1 25 - 26 - runHook postInstall 24 + postInstall = '' 25 + mkdir -p $terminfo/share/terminfo $out/nix-support 26 + tic -x -o $terminfo/share/terminfo mtm.ti 27 + echo "$terminfo" >> $out/nix-support/propagated-user-env-packages 27 28 ''; 28 29 29 30 meta = with lib; {