mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-15 08:34:04 +00:00
![Alexis Hildebrandt](/assets/img/avatar_default.png)
nix run nixpkgs#silver-searcher -- -G '\.nix$' -0l 'description.*"[Aa]n?' pkgs \ | xargs -0 nix run nixpkgs#gnused -- -i '' -Ee 's/(description.*")[Aa]n? (.)/\1\U\2/'
30 lines
803 B
Nix
30 lines
803 B
Nix
{ lib, fetchurl, stdenv, libiconv, ncurses, lua }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "dit";
|
|
version = "0.9";
|
|
|
|
src = fetchurl {
|
|
url = "https://hisham.hm/dit/releases/${version}/${pname}-${version}.tar.gz";
|
|
hash = "sha256-p1uD0Q2kqB40fbAEk7/fdOVg9T7SW+2aACSn7hDAD+E=";
|
|
};
|
|
|
|
buildInputs = [ ncurses lua ]
|
|
++ lib.optional stdenv.isDarwin libiconv;
|
|
|
|
# fix paths
|
|
prePatch = ''
|
|
patchShebangs tools/GenHeaders
|
|
substituteInPlace Prototypes.h --replace 'tail' "$(type -P tail)"
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "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 ];
|
|
mainProgram = "dit";
|
|
};
|
|
}
|