diff options
author | github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> | 2024-05-15 12:01:11 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-05-15 12:01:11 +0000 |
commit | ef850861bca0d6061b4b7cd6a3714e2b107f3836 (patch) | |
tree | d3e6ae002598f07db5db8a6dae748d17137e0a28 /pkgs/by-name/ft | |
parent | 080da2109e293299e56c4752b2cef28415619a12 (diff) | |
parent | 5752bc84b0d9dd3ae4910275b0ffec9bb035d40e (diff) |
Merge master into staging-next
Diffstat (limited to 'pkgs/by-name/ft')
-rw-r--r-- | pkgs/by-name/ft/fte/package.nix | 59 |
1 files changed, 59 insertions, 0 deletions
diff --git a/pkgs/by-name/ft/fte/package.nix b/pkgs/by-name/ft/fte/package.nix new file mode 100644 index 0000000000000..149bb4adf9b5f --- /dev/null +++ b/pkgs/by-name/ft/fte/package.nix @@ -0,0 +1,59 @@ +{ + lib, + stdenv, + fetchurl, + unzip, + perl, + libX11, + libXpm, + gpm, + ncurses, + slang, +}: + +stdenv.mkDerivation (finalAttrs: { + pname = "fte"; + version = "0.50.02"; + + ftesrc = fetchurl { + url = "mirror://sourceforge/fte/fte-20110708-src.zip"; + hash = "sha256-1jEcVC0/DyiQpUpmHDtnIo4nuJS0Fk6frynwFPJUSZ4="; + }; + + ftecommon = fetchurl { + url = "mirror://sourceforge/fte/fte-20110708-common.zip"; + hash = "sha256-WEEVeLMZWHZfQtK/Kbeu3Z+RaVXCwZyWkJocA+Akavc="; + }; + + src = [ + finalAttrs.ftesrc + finalAttrs.ftecommon + ]; + + nativeBuildInputs = [ unzip ]; + buildInputs = [ + perl + libX11 + libXpm + gpm + ncurses + slang + ]; + + hardeningDisable = [ "all" ]; + enableParallelBuilding = true; + + env.NIX_CFLAGS_COMPILE = "-DHAVE_STRLCAT -DHAVE_STRLCPY"; + installFlags = [ "INSTALL_NONROOT=1" ]; + + # not setting it cause fte to not find xfte + makeFlags = [ "PREFIX=${placeholder "out"}" ]; + + meta = { + description = "A free text editor for developers"; + homepage = "https://fte.sourceforge.net/"; + license = lib.licenses.gpl2; + maintainers = with lib.maintainers; [ sigmanificient ]; + platforms = lib.platforms.all; + }; +}) |