mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-08 05:54:24 +00:00
755b915a15
nix run nixpkgs#silver-searcher -- -G '\.nix$' -0l 'description.*"[Aa]n?' pkgs \ | xargs -0 nix run nixpkgs#gnused -- -i '' -Ee 's/(description.*")[Aa]n? (.)/\1\U\2/'
24 lines
669 B
Nix
24 lines
669 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 = "Efficient hex editor";
|
|
homepage = "http://www.chiark.greenend.org.uk/~sgtatham/tweak";
|
|
license = licenses.mit;
|
|
platforms = platforms.unix;
|
|
mainProgram = "tweak";
|
|
};
|
|
}
|