Merge pull request #161280 from Stunkymonkey/treewide-pname-version-13

This commit is contained in:
Sandro 2022-02-25 13:05:16 +01:00 committed by GitHub
commit 8a3df55108
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
16 changed files with 77 additions and 94 deletions

View File

@ -1,15 +1,15 @@
{ lib, stdenv, fetchFromGitHub, autoreconfHook, pkg-config, python3, gtk-doc}:
stdenv.mkDerivation rec {
name = "libsmartcols";
version = "v2.36.1";
pname = "libsmartcols";
version = "2.36.1";
nativeBuildInputs = [ autoreconfHook pkg-config python3 gtk-doc ];
src = fetchFromGitHub {
owner = "karelzak";
repo = "util-linux";
rev = version;
rev = "v${version}";
sha256 = "0z7nv054pqhlihqiw0vk3h40j0cxk1yxf8zzh0ddmvk6834cnyxs";
};

View File

@ -1,10 +1,8 @@
{ lib, stdenv, fetchFromGitHub, cmake, pkg-config, openssl, boost, gmp, procps }:
let
rev = "9e6b19ff15bc19fba5da1707ba18e7f160e5ed07";
in stdenv.mkDerivation rec {
name = "libsnark-pre${version}";
version = lib.substring 0 8 rev;
stdenv.mkDerivation rec {
pname = "libsnark";
version = "unstable-2018-01-15";
nativeBuildInputs = [ cmake pkg-config ];
buildInputs = [ openssl boost gmp ] ++ lib.optional stdenv.hostPlatform.isLinux procps;
@ -12,7 +10,7 @@ in stdenv.mkDerivation rec {
cmakeFlags = lib.optionals stdenv.hostPlatform.isDarwin [ "-DWITH_PROCPS=OFF" "-DWITH_SUPERCOP=OFF" ];
src = fetchFromGitHub {
inherit rev;
rev = "9e6b19ff15bc19fba5da1707ba18e7f160e5ed07";
owner = "scipr-lab";
repo = "libsnark";
sha256 = "13f02qp2fmfhvxlp4xi69m0l8r5nq913l2f0zwdk7hl46lprfdca";

View File

@ -1,13 +1,12 @@
{ lib, stdenv, fetchFromGitHub, cmake, pkg-config, gtk3, Cocoa }:
let
shortName = "libui";
version = "4.1a";
backend = if stdenv.isDarwin then "darwin" else "unix";
in
stdenv.mkDerivation {
name = "${shortName}-${version}";
stdenv.mkDerivation rec {
pname = "libui";
version = "4.1a";
src = fetchFromGitHub {
owner = "andlabs";
repo = "libui";
@ -27,22 +26,22 @@ stdenv.mkDerivation {
mkdir -p $out/{include,lib}
mkdir -p $out/lib/pkgconfig
'' + lib.optionalString stdenv.isLinux ''
mv ./out/${shortName}.so.0 $out/lib/
ln -s $out/lib/${shortName}.so.0 $out/lib/${shortName}.so
mv ./out/libui.so.0 $out/lib/
ln -s $out/lib/libui.so.0 $out/lib/libui.so
'' + lib.optionalString stdenv.isDarwin ''
mv ./out/${shortName}.A.dylib $out/lib/
ln -s $out/lib/${shortName}.A.dylib $out/lib/${shortName}.dylib
mv ./out/libui.A.dylib $out/lib/
ln -s $out/lib/lubui.A.dylib $out/lib/libui.dylib
'' + ''
cp $src/ui.h $out/include
cp $src/ui_${backend}.h $out/include
cp ${./libui.pc} $out/lib/pkgconfig/${shortName}.pc
substituteInPlace $out/lib/pkgconfig/${shortName}.pc \
cp ${./libui.pc} $out/lib/pkgconfig/libui.pc
substituteInPlace $out/lib/pkgconfig/libui.pc \
--subst-var-by out $out \
--subst-var-by version "${version}"
'';
postInstall = lib.optionalString stdenv.isDarwin ''
install_name_tool -id $out/lib/${shortName}.A.dylib $out/lib/${shortName}.A.dylib
install_name_tool -id $out/lib/libui.A.dylib $out/lib/libui.A.dylib
'';
meta = with lib; {

View File

@ -34,6 +34,7 @@ stdenv.mkDerivation {
meta = with lib; {
description = "PDF to XML converter";
homepage = "https://sourceforge.net/projects/pdf2xml/";
platforms = platforms.unix;
license = licenses.gpl2;
};

View File

@ -1,13 +1,13 @@
{ lib, stdenv, fetchurl, geant_version }:
let
mkDataset = { name, version, sha256, envvar }:
mkDataset = { pname, version, sha256, envvar }:
stdenv.mkDerivation {
inherit name version;
inherit pname version;
inherit geant_version;
src = fetchurl {
url = "https://cern.ch/geant4-data/datasets/${name}.${version}.tar.gz";
url = "https://cern.ch/geant4-data/datasets/${pname}.${version}.tar.gz";
inherit sha256;
};
@ -15,7 +15,7 @@ let
dontBuild = true;
dontConfigure = true;
datadir = "${placeholder "out"}/share/Geant4-${geant_version}/data/${name}${version}";
datadir = "${placeholder "out"}/share/Geant4-${geant_version}/data/${pname}${version}";
installPhase = ''
mkdir -p $datadir
mv ./* $datadir
@ -32,86 +32,86 @@ let
};
};
in
builtins.listToAttrs (map (a: { inherit (a) name; value = mkDataset a; }) [
builtins.listToAttrs (map (a: { inherit (a) pname; value = mkDataset a; }) [
{
name = "G4NDL";
pname = "G4NDL";
version = "4.6";
sha256 = "sha256-nSh88q4PuIeirc6AHudPub4hsNFm2rSby+6UCKUUVAg=";
envvar = "NEUTRONHP";
}
{
name = "G4EMLOW";
pname = "G4EMLOW";
version = "8.0";
sha256 = "sha256-2Rmo5YOGiCV7kkimE5EOsqdjMFngMMi1DAosKtn9Kzs=";
envvar = "LE";
}
{
name = "G4PhotonEvaporation";
pname = "G4PhotonEvaporation";
version = "5.7";
sha256 = "sha256-dh5C5W/93j2YOfn52BAmB8a0wDKRUe5Rggb07p535+U=";
envvar = "LEVELGAMMA";
}
{
name = "G4RadioactiveDecay";
pname = "G4RadioactiveDecay";
version = "5.6";
sha256 = "sha256-OIYHfJyOWph4PmcY4cMlZ4me6y27M+QC1Edrwv5PDfE=";
envvar = "RADIOACTIVE";
}
{
name = "G4SAIDDATA";
pname = "G4SAIDDATA";
version = "2.0";
sha256 = "sha256-HSao55uqceRNV1m59Vpn6Lft4xdRMWqekDfYAJDHLpE=";
envvar = "SAIDXS";
}
{
name = "G4PARTICLEXS";
pname = "G4PARTICLEXS";
version = "4.0";
sha256 = "sha256-k4EDlwPD8rD9NqtJmTYqLItP+QgMMi+QtOMZKBEzypU=";
envvar = "PARTICLEXS";
}
{
name = "G4ABLA";
pname = "G4ABLA";
version = "3.1";
sha256 = "sha256-dpiwUrWL8bmIa+rNvWr2B63B4Jn8cwq2shz38JDAJ+0=";
envvar = "ABLA";
}
{
name = "G4INCL";
pname = "G4INCL";
version = "1.0";
sha256 = "sha256-cWFhghrp89BWX788LPNPTgLj5RnrQZqCI27vIsLENn0=";
envvar = "INCL";
}
{
name = "G4PII";
pname = "G4PII";
version = "1.3";
sha256 = "sha256-YiWtkCZ19DgcmMa6JfxaBs6HVJqpeWNNPQNJHWYW6SY=";
envvar = "PII";
}
{
name = "G4ENSDFSTATE";
pname = "G4ENSDFSTATE";
version = "2.3";
sha256 = "sha256-lETF4IIHkavTzKrOEFsOR3kPrc4obhEUmDTnnEqOkgM=";
envvar = "ENSDFSTATE";
}
{
name = "G4RealSurface";
pname = "G4RealSurface";
version = "2.2";
sha256 = "sha256-mVTe4AEvUzEmf3g2kOkS5y21v1Lqm6vs0S6iIoIXaCA=";
envvar = "REALSURFACE";
}
{
name = "G4TENDL";
pname = "G4TENDL";
version = "1.4";
sha256 = "sha256-S3J0AgzItO1Wm4ku8YwuCI7c22tm850lWFzO4l2XIeA=";
envvar = "PARTICLEHP";

View File

@ -1,12 +1,11 @@
{ lib, stdenv, fetchurl, cmake, qrencode, qt4, libdmtx }:
let v = "1.0"; in
stdenv.mkDerivation rec {
name = "prison-${v}";
pname = "prison";
version = "1.0";
src = fetchurl {
url = "mirror://kde/stable/prison/${v}/src/${name}.tar.gz";
url = "mirror://kde/stable/prison/${version}/src/prison-${version}.tar.gz";
sha256 = "08hkzzda36jpdywjqlyzcvli7cx17h4l9yffzsdnhdd788n28krr";
};

View File

@ -1,7 +1,7 @@
{ lib, stdenv, fetchFromGitHub }:
stdenv.mkDerivation rec {
name = "proj-datumgrid";
pname = "proj-datumgrid";
version = "world-1.0";
src = fetchFromGitHub {

View File

@ -1,15 +1,11 @@
{lib, stdenv, fetchurl, cmake, qt4}:
let
pn = "qimageblitz";
v = "0.0.4";
in
stdenv.mkDerivation {
name = "${pn}-${v}";
stdenv.mkDerivation rec {
pname = "qimageblitz";
version = "0.0.4";
src = fetchurl {
url = "mirror://sourceforge/${pn}/${pn}-${v}.tar.bz2";
url = "mirror://sourceforge/qimageblitz/qimageblitz-${version}.tar.bz2";
sha256 = "0pnaf3qi7rgkxzs2mssmslb3f9ya4cyx09wzwlis3ppyvf72j0p9";
};
@ -21,7 +17,7 @@ stdenv.mkDerivation {
meta = {
description = "Graphical effect and filter library for KDE4";
license = lib.licenses.bsd2;
homepage = "http://${pn}.sourceforge.net";
homepage = "http://qimageblitz.sourceforge.net";
platforms = lib.platforms.linux;
};
}

View File

@ -15,22 +15,17 @@
, libobjc, ApplicationServices, OpenGL, Cocoa, AGL, libcxx
}:
let
v_maj = "4.8";
v_min = "7";
vers = "${v_maj}.${v_min}";
in
# TODO:
# * move some plugins (e.g., SQL plugins) to dedicated derivations to avoid
# false build-time dependencies
stdenv.mkDerivation rec {
name = "qt-${vers}";
pname = "qt";
version = "4.8.7";
src = fetchurl {
url = "http://download.qt-project.org/official_releases/qt/"
+ "${v_maj}/${vers}/qt-everywhere-opensource-src-${vers}.tar.gz";
+ "${lib.versions.majorMinor version}/${version}/qt-everywhere-opensource-src-${version}.tar.gz";
sha256 = "183fca7n7439nlhxyg1z7aky0izgbyll3iwakw4gwivy16aj5272";
};
@ -40,8 +35,6 @@ stdenv.mkDerivation rec {
setOutputFlags = false;
# The version property must be kept because it will be included into the QtSDK package name
version = vers;
prePatch = ''
substituteInPlace configure --replace /bin/pwd pwd
@ -131,13 +124,13 @@ stdenv.mkDerivation rec {
preConfigure = ''
export LD_LIBRARY_PATH="`pwd`/lib''${LD_LIBRARY_PATH:+:}$LD_LIBRARY_PATH"
configureFlags+="
-docdir $out/share/doc/${name}
-docdir $out/share/doc/qt-${version}
-plugindir $out/lib/qt4/plugins
-importdir $out/lib/qt4/imports
-examplesdir $TMPDIR/share/doc/${name}/examples
-demosdir $TMPDIR/share/doc/${name}/demos
-datadir $out/share/${name}
-translationdir $out/share/${name}/translations
-examplesdir $TMPDIR/share/doc/qt-${version}/examples
-demosdir $TMPDIR/share/doc/qt-${version}/demos
-datadir $out/share/qt-${version}
-translationdir $out/share/qt-${version}/translations
--jobs=$NIX_BUILD_CORES
"
unset LD # Makefile uses gcc for linking; setting LD interferes

View File

@ -3,7 +3,6 @@
with lib;
let
version = "1.3.0";
incfile = builtins.toFile "make.inc.custom" ''
CC = g++
FORT = gfortran
@ -32,10 +31,11 @@ let
INC = -I$(clBLAS)/include
#-I$(AMDAPP)/include
'';
in stdenv.mkDerivation {
name = "clmagma-${version}";
in stdenv.mkDerivation rec {
pname = "clmagma";
version = "1.3.0";
src = fetchurl {
url = "http://icl.cs.utk.edu/projectsfiles/magma/cl/clmagma-${version}.tar.gz";
url = "https://icl.cs.utk.edu/projectsfiles/magma/cl/clmagma-${version}.tar.gz";
sha256 = "1n27ny0xhwirw2ydn46pfcwy53gzia9zbam4irx44fd4d7f9ydv7";
name = "clmagma-${version}.tar.gz";
};
@ -68,7 +68,7 @@ in stdenv.mkDerivation {
meta = with lib; {
description = "Matrix Algebra on GPU and Multicore Architectures, OpenCL port";
license = licenses.bsd3;
homepage = "http://icl.cs.utk.edu/magma/index.html";
homepage = "https://icl.cs.utk.edu/magma/index.html";
platforms = platforms.linux;
maintainers = with maintainers; [ volhovm ];
};

View File

@ -3,14 +3,12 @@
}:
let
version = "4.4.4";
name = "suitesparse-${version}";
int_t = if blas.isILP64 then "int64_t" else "int32_t";
SHLIB_EXT = stdenv.hostPlatform.extensions.sharedLibrary;
in
stdenv.mkDerivation {
inherit name;
stdenv.mkDerivation rec {
version = "4.4.4";
pname = "suitesparse";
src = fetchurl {
url = "http://faculty.cse.tamu.edu/davis/SuiteSparse/SuiteSparse-${version}.tar.gz";
@ -71,7 +69,7 @@ stdenv.mkDerivation {
done
# Install documentation
outdoc=$out/share/doc/${name}
outdoc=$out/share/doc/suitesparse-${version}
mkdir -p $outdoc
cp -r AMD/Doc $outdoc/amd
cp -r BTF/Doc $outdoc/bft

View File

@ -6,7 +6,8 @@
}:
stdenv.mkDerivation {
name = "soil";
pname = "soil";
version = "unstable-2020-01-04";
src = fetchzip {
url = "https://web.archive.org/web/20200104042737id_/http://www.lonesock.net/files/soil.zip";

View File

@ -1,11 +1,11 @@
{ lib, stdenv, fetchurl, alsa-lib, ncurses }:
stdenv.mkDerivation rec {
name = "speech_tools-${version}.0";
version = "2.5";
pname = "speech_tools";
version = "2.5.0";
src = fetchurl {
url = "http://www.festvox.org/packed/festival/${version}/${name}-release.tar.gz";
url = "http://www.festvox.org/packed/festival/${lib.versions.majorMinor version}/speech_tools-${version}-release.tar.gz";
sha256 = "1k2xh13miyv48gh06rgsq2vj25xwj7z6vwq9ilsn8i7ig3nrgzg4";
};

View File

@ -1,18 +1,19 @@
{ lib, fetchurl, tcl }:
tcl.mkTclDerivation rec {
name = "tclx-${version}.${patch}";
version = "8.4";
patch = "1";
pname = "tclx";
version = "8.4.1";
src = fetchurl {
url = "mirror://sourceforge/tclx/tclx${version}.${patch}.tar.bz2";
url = "mirror://sourceforge/tclx/tclx${version}.tar.bz2";
sha256 = "1v2qwzzidz0is58fd1p7wfdbscxm3ip2wlbqkj5jdhf6drh1zd59";
};
# required in order for tclx to properly detect tclx.tcl at runtime
postInstall = ''
ln -s $prefix/lib/tclx${version} $prefix/lib/tclx${version}/tclx${version}
postInstall = let
majorMinorVersion = lib.versions.majorMinor version;
in ''
ln -s $prefix/lib/tclx${majorMinorVersion} $prefix/lib/tclx${majorMinorVersion}/tclx${majorMinorVersion}
'';
meta = {

View File

@ -1,7 +1,7 @@
{ lib, stdenv, fetchFromGitHub, cmake, doxygen }:
stdenv.mkDerivation rec {
name = "uri-${version}";
pname = "uri";
version = "1.1.0";
src = fetchFromGitHub {

View File

@ -1,14 +1,11 @@
{ lib, stdenv, fetchurl, intltool, pkg-config, glib, gtk3, ncurses, gobject-introspection }:
stdenv.mkDerivation rec {
versionMajor = "0.36";
versionMinor = "3";
moduleName = "vte";
name = "${moduleName}-${versionMajor}.${versionMinor}";
pname = "vte";
version = "0.36.3";
src = fetchurl {
url = "mirror://gnome/sources/${moduleName}/${versionMajor}/${name}.tar.xz";
url = "mirror://gnome/sources/vte/${lib.versions.majorMinor version}/vte-${version}.tar.xz";
sha256 = "54e5b07be3c0f7b158302f54ee79d4de1cb002f4259b6642b79b1e0e314a959c";
};