about summary refs log tree commit diff
path: root/pkgs/applications/editors/edlin/default.nix
blob: f8baa9aa67bc190d328f641708aba7f18c0f4c6f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
{ lib
, stdenv
, fetchurl
}:

stdenv.mkDerivation (finalAttrs: {
  pname = "edlin";
  version = "2.21";

  src = let
    inherit (finalAttrs) version;
  in fetchurl {
    url = "mirror://sourceforge/freedos-edlin/freedos-edlin/${version}/edlin-${version}.tar.bz2";
    hash = "sha256-lQ/tw8dvEKV81k5GV05o49glOmfYcEeJBmgPUmL3S2I=";
  };

  postInstall = ''
    mkdir -p $out/share/doc/edlin-${finalAttrs.version}/
    cp AUTHORS ChangeLog README TODO edlin.htm $out/share/doc/edlin-${finalAttrs.version}/
  '';

  meta = with lib; {
    homepage = "https://sourceforge.net/projects/freedos-edlin/";
    description = "FreeDOS line editor";
    license = licenses.gpl2Plus;
    maintainers = with maintainers; [ AndersonTorres ];
    platforms = with platforms; unix;
    mainProgram = "edlin";
  };
})