about summary refs log tree commit diff
path: root/nixpkgs/pkgs/applications/editors/tweak/default.nix
blob: f6b241c9d07f069b001cfe25d2fe66dd3dc9dac7 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
{ 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 = "An efficient hex editor";
    homepage = "http://www.chiark.greenend.org.uk/~sgtatham/tweak";
    license = licenses.mit;
    platforms = platforms.unix;
  };
}