nixpkgs/pkgs/applications/editors/tweak/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

24 lines
672 B
Nix
Raw Normal View History

{ lib, stdenv, fetchurl, ncurses }:
2016-03-23 14:18:03 +00:00
stdenv.mkDerivation rec {
pname = "tweak";
2016-03-23 14:18:03 +00:00
version = "3.02";
src = fetchurl {
url = "https://www.chiark.greenend.org.uk/~sgtatham/tweak/${pname}-${version}.tar.gz";
2016-03-23 14:18:03 +00:00
sha256 = "06js54pr5hwpwyxj77zs5s40n5aqvaw48dkj7rid2d47pyqijk2v";
};
buildInputs = [ ncurses ];
preBuild = "substituteInPlace Makefile --replace '$(DESTDIR)/usr/local' $out";
2023-11-14 15:44:15 +00:00
makeFlags = [ "CC:=$(CC)" "LINK:=$(CC)" ];
2016-03-23 14:18:03 +00:00
meta = with lib; {
2016-03-23 14:18:03 +00:00
description = "An efficient hex editor";
homepage = "http://www.chiark.greenend.org.uk/~sgtatham/tweak";
2016-03-23 14:18:03 +00:00
license = licenses.mit;
2023-11-14 15:44:15 +00:00
platforms = platforms.unix;
2023-11-27 01:17:53 +00:00
mainProgram = "tweak";
2016-03-23 14:18:03 +00:00
};
}