nixpkgs/pkgs/applications/editors/dit/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

29 lines
783 B
Nix
Raw Normal View History

{ lib, fetchurl, stdenv, libiconv, ncurses, lua }:
2018-04-10 04:28:02 +00:00
stdenv.mkDerivation rec {
pname = "dit";
2020-05-21 07:38:27 +00:00
version = "0.7";
2018-04-10 04:28:02 +00:00
src = fetchurl {
url = "https://hisham.hm/dit/releases/${version}/${pname}-${version}.tar.gz";
2020-05-21 07:38:27 +00:00
sha256 = "0cmbyzqfz2qa83cg8lpjifn34wmx34c5innw485zh4vk3c0k8wlj";
2018-04-10 04:28:02 +00:00
};
buildInputs = [ ncurses lua ]
++ lib.optional stdenv.isDarwin libiconv;
2018-04-10 04:28:02 +00:00
# fix paths
2018-04-10 04:28:02 +00:00
prePatch = ''
patchShebangs tools/GenHeaders
substituteInPlace Prototypes.h --replace 'tail' "$(type -P tail)"
'';
meta = with lib; {
2018-04-10 04:28:02 +00:00
description = "A console text editor for Unix that you already know how to use";
2020-04-09 15:42:03 +00:00
homepage = "https://hisham.hm/dit/";
2018-04-10 04:28:02 +00:00
license = licenses.gpl2;
platforms = with platforms; linux;
maintainers = with maintainers; [ davidak ];
};
}