diff options
Diffstat (limited to 'nixpkgs/pkgs/applications/editors/tweak/default.nix')
-rw-r--r-- | nixpkgs/pkgs/applications/editors/tweak/default.nix | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/applications/editors/tweak/default.nix b/nixpkgs/pkgs/applications/editors/tweak/default.nix new file mode 100644 index 000000000000..3dc7d04ede38 --- /dev/null +++ b/nixpkgs/pkgs/applications/editors/tweak/default.nix @@ -0,0 +1,21 @@ +{ 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"; + + meta = with stdenv.lib; { + description = "An efficient hex editor"; + homepage = "http://www.chiark.greenend.org.uk/~sgtatham/tweak"; + license = licenses.mit; + platforms = platforms.linux; + }; +} |