2021-01-15 22:18:51 +00:00
|
|
|
{ lib, stdenv, fetchurl, ncurses }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
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";
|
2023-11-16 04:20:00 +00:00
|
|
|
makeFlags = [ "CC:=$(CC)" "LINK:=$(CC)" ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Efficient hex editor";
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "http://www.chiark.greenend.org.uk/~sgtatham/tweak";
|
|
|
|
license = licenses.mit;
|
2023-11-16 04:20:00 +00:00
|
|
|
platforms = platforms.unix;
|
2024-01-02 11:29:13 +00:00
|
|
|
mainProgram = "tweak";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|