504525a148
GitOrigin-RevId: bd645e8668ec6612439a9ee7e71f7eac4099d4f6
23 lines
672 B
Nix
23 lines
672 B
Nix
{ lib, stdenv, fetchurl, ncurses }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "tweak";
|
|
version = "3.02";
|
|
|
|
src = fetchurl {
|
|
url = "https://www.chiark.greenend.org.uk/~sgtatham/tweak/${pname}-${version}.tar.gz";
|
|
sha256 = "06js54pr5hwpwyxj77zs5s40n5aqvaw48dkj7rid2d47pyqijk2v";
|
|
};
|
|
|
|
buildInputs = [ ncurses ];
|
|
preBuild = "substituteInPlace Makefile --replace '$(DESTDIR)/usr/local' $out";
|
|
makeFlags = [ "CC:=$(CC)" "LINK:=$(CC)" ];
|
|
|
|
meta = with lib; {
|
|
description = "An efficient hex editor";
|
|
homepage = "http://www.chiark.greenend.org.uk/~sgtatham/tweak";
|
|
license = licenses.mit;
|
|
platforms = platforms.unix;
|
|
mainProgram = "tweak";
|
|
};
|
|
}
|