1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-26 15:41:40 +00:00
nixpkgs/pkgs/applications/editors/dit/default.nix

29 lines
790 B
Nix
Raw Normal View History

{ lib, fetchurl, stdenv, libiconv, ncurses, lua }:
2018-04-10 05:28:02 +01:00
stdenv.mkDerivation rec {
pname = "dit";
2020-04-09 16:42:03 +01:00
version = "0.6";
2018-04-10 05:28:02 +01:00
src = fetchurl {
url = "https://hisham.hm/dit/releases/${version}/${pname}-${version}.tar.gz";
2020-04-09 16:42:03 +01:00
sha256 = "0ryvm54xxkg2gcgz4r8zdxrl6j2h8mgg9nfqmdmdr31qkcj8wjsq";
2018-04-10 05:28:02 +01:00
};
buildInputs = [ ncurses lua ]
++ lib.optional stdenv.isDarwin libiconv;
2018-04-10 05:28:02 +01:00
# fix paths
2018-04-10 05:28:02 +01:00
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";
2020-04-09 16:42:03 +01:00
homepage = "https://hisham.hm/dit/";
2018-04-10 05:28:02 +01:00
license = licenses.gpl2;
platforms = with platforms; linux;
maintainers = with maintainers; [ davidak ];
};
}