Merge pull request #161414 from Stunkymonkey/treewide-appendToName
This commit is contained in:
commit
f31e080cc4
@ -37,7 +37,8 @@ let
|
||||
# base pkg/lib
|
||||
baseLib = python3Packages.callPackage ./lib.nix { };
|
||||
in mkDerivation {
|
||||
inherit (baseLib) pname version src;
|
||||
pname = baseLib.pname + lib.optionalString (pdfSupport && presentationSupport && vlcSupport && gstreamerSupport) "-full";
|
||||
inherit (baseLib) version src;
|
||||
|
||||
nativeBuildInputs = [ python3Packages.wrapPython wrapGAppsHook ];
|
||||
buildInputs = [ qtbase ] ++ optionals gstreamerSupport
|
||||
|
@ -14,7 +14,7 @@
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "neuron";
|
||||
pname = "neuron${lib.optionalString useMpi "-mpi"}";
|
||||
version = "7.5";
|
||||
|
||||
nativeBuildInputs = [ which pkg-config automake autoconf libtool ];
|
||||
|
@ -5,12 +5,12 @@
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "RAxML";
|
||||
pname = "RAxML${lib.optionalString useMpi "-mpi"}";
|
||||
version = "8.2.12";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "stamatak";
|
||||
repo = "standard-${pname}";
|
||||
repo = "standard-RAxML";
|
||||
rev = "v${version}";
|
||||
sha256 = "1jqjzhch0rips0vp04prvb8vmc20c5pdmsqn8knadcf91yy859fh";
|
||||
};
|
||||
|
@ -20,7 +20,7 @@ let
|
||||
inherit (python3Packages) docutils python fb-re2 pygit2 pygments;
|
||||
|
||||
self = python3Packages.buildPythonApplication rec {
|
||||
pname = "mercurial";
|
||||
pname = "mercurial${lib.optionalString fullBuild "-full"}";
|
||||
version = "6.0.3";
|
||||
|
||||
src = fetchurl {
|
||||
@ -34,9 +34,9 @@ let
|
||||
|
||||
cargoDeps = if rustSupport then rustPlatform.fetchCargoTarball {
|
||||
inherit src;
|
||||
name = "${pname}-${version}";
|
||||
name = "mercurial-${version}";
|
||||
sha256 = "sha256-i4WROxezeqLX4hTdcPrqsf6dBqsNZz6fFAPzItYuklE=";
|
||||
sourceRoot = "${pname}-${version}/rust";
|
||||
sourceRoot = "mercurial-${version}/rust";
|
||||
} else null;
|
||||
cargoRoot = if rustSupport then "rust" else null;
|
||||
|
||||
|
@ -11,7 +11,7 @@
|
||||
assert mpiSupport -> mpi != null;
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "highfive";
|
||||
pname = "highfive${lib.optionalString mpiSupport "-mpi"}";
|
||||
version = "2.3.1";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
|
@ -10,11 +10,11 @@
|
||||
let
|
||||
inherit (hdf5) mpiSupport mpi;
|
||||
in stdenv.mkDerivation rec {
|
||||
pname = "netcdf";
|
||||
pname = "netcdf" + lib.optionalString mpiSupport "-mpi";
|
||||
version = "4.8.0"; # Remove patch mentioned below on upgrade
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://www.unidata.ucar.edu/downloads/netcdf/ftp/${pname}-c-${version}.tar.gz";
|
||||
url = "https://www.unidata.ucar.edu/downloads/netcdf/ftp/netcdf-c-${version}.tar.gz";
|
||||
sha256 = "1mfn8qi4k0b8pyar3wa8v0npj69c7rhgfdlppdwmq5jqk88kb5k7";
|
||||
};
|
||||
|
||||
|
@ -10,7 +10,7 @@ let
|
||||
in
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "sqlite";
|
||||
pname = "sqlite${optionalString interactive "-interactive"}";
|
||||
version = "3.37.2";
|
||||
|
||||
# nixpkgs-update: no auto update
|
||||
|
@ -30,7 +30,7 @@ let
|
||||
in
|
||||
stdenv.mkDerivation rec {
|
||||
version = "0.8.0";
|
||||
pname = "davix";
|
||||
pname = "davix" + lib.optionalString enableThirdPartyCopy "-copy";
|
||||
nativeBuildInputs = [ cmake pkg-config python3 ];
|
||||
buildInputs = [
|
||||
openssl
|
||||
@ -44,7 +44,7 @@ stdenv.mkDerivation rec {
|
||||
# "please ignore the GitHub-generated tarballs, as they are incomplete"
|
||||
# https://github.com/cern-fts/davix/releases/tag/R_0_8_0
|
||||
src = fetchurl {
|
||||
url = "https://github.com/cern-fts/${pname}/releases/download/R_${lib.replaceStrings ["."] ["_"] version}/${pname}-${version}.tar.gz";
|
||||
url = "https://github.com/cern-fts/davix/releases/download/R_${lib.replaceStrings ["."] ["_"] version}/davix-${version}.tar.gz";
|
||||
sha256 = "LxCNoECKg/tbnwxoFQ02C6cz5LOg/imNRbDTLSircSQ=";
|
||||
};
|
||||
|
||||
|
@ -16,7 +16,7 @@
|
||||
assert (doCheck && stdenv.isLinux) -> glibcLocales != null;
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "gawk";
|
||||
pname = "gawk" + lib.optionalString interactive "-interactive";
|
||||
version = "5.1.1";
|
||||
|
||||
src = fetchurl {
|
||||
|
@ -14,7 +14,7 @@
|
||||
# enable any extra features.
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "dblatex";
|
||||
pname = "dblatex${lib.optionalString enableAllFeatures "-full"}";
|
||||
version = "0.3.12";
|
||||
|
||||
src = fetchurl {
|
||||
|
@ -4069,7 +4069,7 @@ with pkgs;
|
||||
|
||||
davix = callPackage ../tools/networking/davix { };
|
||||
|
||||
davix-copy = appendToName "copy" (davix.override { enableThirdPartyCopy = true; });
|
||||
davix-copy = davix.override { enableThirdPartyCopy = true; };
|
||||
|
||||
cantata = libsForQt5.callPackage ../applications/audio/cantata { };
|
||||
|
||||
@ -5681,8 +5681,7 @@ with pkgs;
|
||||
};
|
||||
gawkextlib = callPackage ../tools/text/gawk/gawkextlib.nix {};
|
||||
|
||||
gawkInteractive = appendToName "interactive"
|
||||
(gawk.override { interactive = true; });
|
||||
gawkInteractive = gawk.override { interactive = true; };
|
||||
|
||||
gawp = callPackage ../tools/misc/gawp { };
|
||||
|
||||
@ -8085,9 +8084,9 @@ with pkgs;
|
||||
hdf5 = hdf5.override { usev110Api = true; };
|
||||
};
|
||||
|
||||
netcdf-mpi = appendToName "mpi" (netcdf.override {
|
||||
netcdf-mpi = netcdf.override {
|
||||
hdf5 = hdf5-mpi.override { usev110Api = true; };
|
||||
});
|
||||
};
|
||||
|
||||
netcdfcxx4 = callPackage ../development/libraries/netcdf-cxx4 { };
|
||||
|
||||
@ -15756,9 +15755,7 @@ with pkgs;
|
||||
texinfo6_7 = callPackage ../development/tools/misc/texinfo/6.7.nix { }; # needed for gpm, iksemel and fwknop
|
||||
texinfo6 = callPackage ../development/tools/misc/texinfo/6.8.nix { };
|
||||
texinfo = texinfo6;
|
||||
texinfoInteractive = appendToName "interactive" (
|
||||
texinfo.override { interactive = true; }
|
||||
);
|
||||
texinfoInteractive = texinfo.override { interactive = true; };
|
||||
|
||||
texi2html = callPackage ../development/tools/misc/texi2html { };
|
||||
|
||||
@ -17276,9 +17273,7 @@ with pkgs;
|
||||
|
||||
highfive = callPackage ../development/libraries/highfive { };
|
||||
|
||||
highfive-mpi = appendToName "mpi" (highfive.override {
|
||||
hdf5 = hdf5-mpi;
|
||||
});
|
||||
highfive-mpi = highfive.override { hdf5 = hdf5-mpi; };
|
||||
|
||||
hiredis = callPackage ../development/libraries/hiredis { };
|
||||
|
||||
@ -20160,7 +20155,7 @@ with pkgs;
|
||||
|
||||
sqlitecpp = callPackage ../development/libraries/sqlitecpp { };
|
||||
|
||||
sqlite-interactive = appendToName "interactive" (sqlite.override { interactive = true; }).bin;
|
||||
sqlite-interactive = (sqlite.override { interactive = true; }).bin;
|
||||
|
||||
sqlite-jdbc = callPackage ../servers/sql/sqlite/jdbc { };
|
||||
|
||||
@ -27316,7 +27311,7 @@ with pkgs;
|
||||
inherit (darwin.apple_sdk.frameworks) ApplicationServices;
|
||||
};
|
||||
|
||||
mercurialFull = appendToName "full" (mercurial.override { fullBuild = true; });
|
||||
mercurialFull = mercurial.override { fullBuild = true; };
|
||||
|
||||
merkaartor = libsForQt5.callPackage ../applications/misc/merkaartor { };
|
||||
|
||||
@ -31818,12 +31813,12 @@ with pkgs;
|
||||
octopus = callPackage ../applications/science/chemistry/octopus { };
|
||||
|
||||
openlp = libsForQt5.callPackage ../applications/misc/openlp { };
|
||||
openlpFull = appendToName "full" (openlp.override {
|
||||
openlpFull = openlp.override {
|
||||
pdfSupport = true;
|
||||
presentationSupport = true;
|
||||
vlcSupport = true;
|
||||
gstreamerSupport = true;
|
||||
});
|
||||
};
|
||||
|
||||
dkh = callPackage ../applications/science/chemistry/dkh { };
|
||||
|
||||
@ -31975,13 +31970,9 @@ with pkgs;
|
||||
|
||||
n3 = callPackage ../applications/science/biology/N3 { };
|
||||
|
||||
neuron = callPackage ../applications/science/biology/neuron {
|
||||
python = null;
|
||||
};
|
||||
neuron = callPackage ../applications/science/biology/neuron { python = null; };
|
||||
|
||||
neuron-mpi = appendToName "mpi" (neuron.override {
|
||||
useMpi = true;
|
||||
});
|
||||
neuron-mpi = neuron.override {useMpi = true; };
|
||||
|
||||
neuron-full = neuron-mpi.override { python = python2; };
|
||||
|
||||
@ -32031,9 +32022,7 @@ with pkgs;
|
||||
|
||||
raxml = callPackage ../applications/science/biology/raxml { };
|
||||
|
||||
raxml-mpi = appendToName "mpi" (raxml.override {
|
||||
useMpi = true;
|
||||
});
|
||||
raxml-mpi = raxml.override { useMpi = true; };
|
||||
|
||||
sambamba = callPackage ../applications/science/biology/sambamba { };
|
||||
|
||||
@ -33008,13 +32997,9 @@ with pkgs;
|
||||
|
||||
dbacl = callPackage ../tools/misc/dbacl { };
|
||||
|
||||
dblatex = callPackage ../tools/typesetting/tex/dblatex {
|
||||
enableAllFeatures = false;
|
||||
};
|
||||
dblatex = callPackage ../tools/typesetting/tex/dblatex { };
|
||||
|
||||
dblatexFull = appendToName "full" (dblatex.override {
|
||||
enableAllFeatures = true;
|
||||
});
|
||||
dblatexFull = dblatex.override { enableAllFeatures = true; };
|
||||
|
||||
dbus-map = callPackage ../tools/misc/dbus-map { };
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user