From 4075c1974ccd937794082f42faf1906328efe129 Mon Sep 17 00:00:00 2001 From: AndersonTorres Date: Sat, 7 Jan 2023 00:49:13 -0300 Subject: [PATCH] edlin: init at 2.21 --- pkgs/applications/editors/edlin/default.nix | 29 +++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 31 insertions(+) create mode 100644 pkgs/applications/editors/edlin/default.nix diff --git a/pkgs/applications/editors/edlin/default.nix b/pkgs/applications/editors/edlin/default.nix new file mode 100644 index 000000000000..9de4f8d4a8c7 --- /dev/null +++ b/pkgs/applications/editors/edlin/default.nix @@ -0,0 +1,29 @@ +{ 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; + }; +}) diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index b15a51fbcb9a..ec6e5b0ce48f 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -28510,6 +28510,8 @@ with pkgs; edbrowse = callPackage ../applications/editors/edbrowse { }; + edlin = callPackage ../applications/editors/edlin { }; + o = callPackage ../applications/editors/o { }; oed = callPackage ../applications/editors/oed { };