mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 23:03:40 +01:00
fte: modernize, migrate to by-name
fte: remove from top-level
This commit is contained in:
parent
7202a12e6a
commit
0798a05349
3 changed files with 59 additions and 35 deletions
|
@ -1,33 +0,0 @@
|
|||
{ lib, stdenv, fetchurl, unzip, perl, libX11, libXpm, gpm, ncurses, slang }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "fte";
|
||||
version = "0.50.02";
|
||||
|
||||
nativeBuildInputs = [ unzip ];
|
||||
buildInputs = [ perl libX11 libXpm gpm ncurses slang ];
|
||||
|
||||
ftesrc = fetchurl {
|
||||
url = "mirror://sourceforge/fte/fte-20110708-src.zip";
|
||||
sha256 = "17j9akr19w19myglw5mljjw2g3i2cwxiqrjaln82h3rz5ma1qcfn";
|
||||
};
|
||||
ftecommon = fetchurl {
|
||||
url = "mirror://sourceforge/fte/fte-20110708-common.zip";
|
||||
sha256 = "1xva4kh0674sj2b9rhf2amlr37yxmsvjkgyj89gpcn0rndw1ahaq";
|
||||
};
|
||||
src = [ ftesrc ftecommon ];
|
||||
|
||||
env.NIX_CFLAGS_COMPILE = "-DHAVE_STRLCAT -DHAVE_STRLCPY";
|
||||
|
||||
buildFlags = [ "PREFIX=$(out)" ];
|
||||
|
||||
installFlags = [ "PREFIX=$(out)" "INSTALL_NONROOT=1" ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "A free text editor for developers";
|
||||
homepage = "https://fte.sourceforge.net/";
|
||||
license = licenses.gpl2;
|
||||
maintainers = with lib.maintainers; [ sigmanificient ];
|
||||
platforms = platforms.all;
|
||||
};
|
||||
}
|
59
pkgs/by-name/ft/fte/package.nix
Normal file
59
pkgs/by-name/ft/fte/package.nix
Normal file
|
@ -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;
|
||||
};
|
||||
})
|
|
@ -31182,8 +31182,6 @@ with pkgs;
|
|||
python3Packages = python39Packages;
|
||||
};
|
||||
|
||||
fte = callPackage ../applications/editors/fte { };
|
||||
|
||||
g933-utils = callPackage ../tools/misc/g933-utils { };
|
||||
|
||||
gavrasm = callPackage ../development/compilers/gavrasm { };
|
||||
|
|
Loading…
Reference in a new issue