dit: init at 0.4
This commit is contained in:
parent
1034aa8e9c
commit
67206c90a8
30
pkgs/applications/editors/dit/default.nix
Normal file
30
pkgs/applications/editors/dit/default.nix
Normal file
@ -0,0 +1,30 @@
|
||||
{ lib, fetchurl, stdenv, coreutils, ncurses, lua }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "dit-${version}";
|
||||
version = "0.4";
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://hisham.hm/dit/releases/${version}/${name}.tar.gz";
|
||||
sha256 = "0bwczbv7annbbpg7bgbsqd5kwypn81sza4v7v99fin94wwmcn784";
|
||||
};
|
||||
|
||||
buildInputs = [ coreutils ncurses lua ];
|
||||
|
||||
prePatch = ''
|
||||
patchShebangs tools/GenHeaders
|
||||
'';
|
||||
|
||||
# needs GNU tail for tail -r
|
||||
postPatch = ''
|
||||
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 ];
|
||||
};
|
||||
}
|
@ -15213,6 +15213,8 @@ with pkgs;
|
||||
|
||||
distrho = callPackage ../applications/audio/distrho {};
|
||||
|
||||
dit = callPackage ../applications/editors/dit { };
|
||||
|
||||
djvulibre = callPackage ../applications/misc/djvulibre { };
|
||||
|
||||
djvu2pdf = callPackage ../tools/typesetting/djvu2pdf { };
|
||||
|
Loading…
Reference in New Issue
Block a user