3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/applications/editors/dit/default.nix
volth 46420bbaa3 treewide: name -> pname (easy cases) (#66585)
treewide replacement of

stdenv.mkDerivation rec {
  name = "*-${version}";
  version = "*";

to pname
2019-08-15 13:41:18 +01:00

29 lines
788 B
Nix

{ lib, fetchurl, stdenv, libiconv, ncurses, lua }:
stdenv.mkDerivation rec {
pname = "dit";
version = "0.5";
src = fetchurl {
url = "https://hisham.hm/dit/releases/${version}/${pname}-${version}.tar.gz";
sha256 = "05vhr1gl3bb5fg49v84xhmjaqdjw6djampvylw10ydvbpnpvjvjc";
};
buildInputs = [ ncurses lua ]
++ lib.optional stdenv.isDarwin libiconv;
# fix paths
prePatch = ''
patchShebangs tools/GenHeaders
substituteInPlace Prototypes.h --replace 'tail' "$(type -P tail)"
'';
meta = with stdenv.lib; {
description = "A console text editor for Unix that you already know how to use";
homepage = https://hisham.hm/dit/;
license = licenses.gpl2;
platforms = with platforms; linux;
maintainers = with maintainers; [ davidak ];
};
}