mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-25 03:17:13 +00:00
46420bbaa3
treewide replacement of stdenv.mkDerivation rec { name = "*-${version}"; version = "*"; to pname
22 lines
601 B
Nix
22 lines
601 B
Nix
{ 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;
|
|
};
|
|
}
|