Merge pull request #131523 from Stunkymonkey/servers-pname-version

This commit is contained in:
Sandro 2021-07-29 12:48:18 +00:00 committed by GitHub
commit 7b055521ba
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
53 changed files with 114 additions and 105 deletions

View File

@ -1,7 +1,7 @@
{ lib, stdenv, fetchurl }:
stdenv.mkDerivation rec {
name = "adguardhome";
pname = "adguardhome";
version = "0.106.3";
src = fetchurl {

View File

@ -6,10 +6,10 @@ assert enableCgiScripts -> gd != null;
stdenv.mkDerivation rec {
pname = "apcupsd";
name = "${pname}-3.14.14";
version = "3.14.14";
src = fetchurl {
url = "mirror://sourceforge/${pname}/${name}.tar.gz";
url = "mirror://sourceforge/${pname}/${pname}-${version}.tar.gz";
sha256 = "0rwqiyzlg9p0szf3x6q1ppvrw6f6dbpn2rc5z623fk3bkdalhxyv";
};

View File

@ -1,10 +1,7 @@
{ lib, stdenv, fetchFromGitHub, slurm } :
let
stdenv.mkDerivation rec {
pname = "slurm-spank-x11";
version = "0.2.5";
in
stdenv.mkDerivation {
name = "slurm-spank-x11-${version}";
version = version;
src = fetchFromGitHub {
owner = "hautreux";

View File

@ -32,7 +32,7 @@ let
};
in
stdenv.mkDerivation rec {
name = "domoticz";
pname = "domoticz";
inherit version;
src = domoticz-src;

View File

@ -2,11 +2,12 @@
# !!! Duplication: this package is almost exactly the same as `bsd-fingerd'.
stdenv.mkDerivation {
name = "bsd-fingerd-0.17";
stdenv.mkDerivation rec {
pname = "bsd-fingerd";
version = "0.17";
src = fetchurl {
url = "ftp://ftp.metalab.unc.edu/pub/linux/system/network/finger/bsd-finger-0.17.tar.gz";
url = "ftp://ftp.metalab.unc.edu/pub/linux/system/network/finger/bsd-finger-${version}.tar.gz";
sha256 = "1yhkiv0in588il7f84k2xiy78g9lv12ll0y7047gazhiimk5v244";
};

View File

@ -1,14 +1,11 @@
{ lib, stdenv, fetchurl }:
let
stdenv.mkDerivation rec {
pname = "bftpd";
in stdenv.mkDerivation rec {
name = "${pname}-${version}";
version = "5.9";
src = fetchurl {
url = "mirror://sourceforge/project/${pname}/${pname}/${name}/${name}.tar.gz";
url = "mirror://sourceforge/project/${pname}/${pname}/${pname}-${version}/${pname}-${version}.tar.gz";
sha256 = "sha256-LMcjPdePlKqVD3kdlPxF4LlVp9BLJFkgTg+WWaWPrqY=";
};

View File

@ -1,10 +1,11 @@
{ lib, stdenv, fetchurl, openssl, fetchpatch }:
stdenv.mkDerivation rec {
name = "pure-ftpd-1.0.49";
pname = "pure-ftpd";
version = "1.0.49";
src = fetchurl {
url = "https://download.pureftpd.org/pub/pure-ftpd/releases/${name}.tar.gz";
url = "https://download.pureftpd.org/pub/pure-ftpd/releases/pure-ftpd-${version}.tar.gz";
sha256 = "19cjr262n6h560fi9nm7l1srwf93k34bp8dp1c6gh90bqxcg8yvn";
};

View File

@ -1,10 +1,11 @@
{ lib, stdenv, fetchurl, libcap, openssl, pam }:
stdenv.mkDerivation rec {
name = "vsftpd-3.0.3";
pname = "vsftpd";
version = "3.0.3";
src = fetchurl {
url = "https://security.appspot.com/downloads/${name}.tar.gz";
url = "https://security.appspot.com/downloads/vsftpd-${version}.tar.gz";
sha256 = "1xsyjn68k3fgm2incpb3lz2nikffl9by2safp994i272wvv2nkcx";
};

View File

@ -3,7 +3,7 @@
}:
yarn2nix-moretea.mkYarnPackage rec {
name = "gotify-ui";
pname = "gotify-ui";
packageJSON = ./package.json;
yarnNix = ./yarndeps.nix;

View File

@ -5,10 +5,11 @@
}:
stdenv.mkDerivation rec {
name = "gpm-1.20.7";
pname = "gpm";
version = "1.20.7";
src = fetchurl {
url = "https://www.nico.schottelius.org/software/gpm/archives/${name}.tar.bz2";
url = "https://www.nico.schottelius.org/software/gpm/archives/gpm-${version}.tar.bz2";
sha256 = "13d426a8h403ckpc8zyf7s2p5rql0lqbg2bv0454x0pvgbfbf4gh";
};

View File

@ -1,7 +1,7 @@
{ lib, stdenv, fetchurl }:
stdenv.mkDerivation rec {
name = "hashi-ui";
pname = "hashi-ui";
version = "1.3.8";
src = fetchurl {

View File

@ -1,7 +1,7 @@
{ buildGoModule, hasura-graphql-engine }:
buildGoModule rec {
name = "hasura-${version}";
pname = "hasura";
version = hasura-graphql-engine.version;
src = hasura-graphql-engine.src;

View File

@ -1,7 +1,7 @@
{ lib, buildGoPackage, fetchFromGitHub }:
buildGoPackage rec {
name = "holochain-go${version}";
pname = "holochain-go";
version = "0.1.0-alpha";
rev = "a17510b910a7a377441c152b8dccdbae1999f63f";

View File

@ -1,17 +1,15 @@
{ lib, stdenv, fetchurl, apacheHttpd }:
let
version = "2.4.7.1";
apache-24-patch = fetchurl {
name = "compile-against-apache24.diff";
url = "https://projects.archlinux.org/svntogit/packages.git/plain/trunk/compile-against-apache24.diff?h=packages/mod_fastcgi&id=81c7cb99d15682df3bdb1edcaeea5259e9e43a42";
sha256 = "000qvrf5jb979i37rimrdivcgjijcffgrpkx38c0rn62z9jz61g4";
};
name = "compile-against-apache24.diff";
url = "https://projects.archlinux.org/svntogit/packages.git/plain/trunk/compile-against-apache24.diff?h=packages/mod_fastcgi&id=81c7cb99d15682df3bdb1edcaeea5259e9e43a42";
sha256 = "000qvrf5jb979i37rimrdivcgjijcffgrpkx38c0rn62z9jz61g4";
};
in
stdenv.mkDerivation {
stdenv.mkDerivation rec {
pname = "mod_fastcgi";
inherit version;
version = "2.4.7.1";
src = fetchurl {
url = "https://github.com/FastCGI-Archives/mod_fastcgi/archive/${version}.tar.gz";

View File

@ -1,11 +1,12 @@
{ lib, stdenv, mysql_jdbc }:
stdenv.mkDerivation {
name = "jboss-mysql-jdbc";
pname = "jboss-mysql-jdbc";
builder = ./builder.sh;
inherit mysql_jdbc;
version = mysql_jdbc.version;
meta = {
platforms = lib.platforms.unix;

View File

@ -1,7 +1,8 @@
{ lib, stdenv, fetchurl }:
stdenv.mkDerivation {
name = "micro-httpd-20140814";
pname = "micro-httpd";
version = "20140814";
src = fetchurl {
url = "https://acme.com/software/micro_httpd/micro_httpd_14Aug2014.tar.gz";

View File

@ -2,10 +2,11 @@
, librdf_rasqal }:
stdenv.mkDerivation rec {
name = "redstore-0.5.4";
pname = "redstore";
version = "0.5.4";
src = fetchurl {
url = "https://www.aelius.com/njh/redstore/${name}.tar.gz";
url = "https://www.aelius.com/njh/redstore/redstore-${version}.tar.gz";
sha256 = "0hc1fjfbfvggl72zqx27v4wy84f5m7bp4dnwd8g41aw8lgynbgaq";
};

View File

@ -1,11 +1,12 @@
{ lib, stdenv, mysql_jdbc }:
stdenv.mkDerivation {
name = "tomcat-mysql-jdbc";
pname = "tomcat-mysql-jdbc";
builder = ./builder.sh;
buildInputs = [ mysql_jdbc ];
inherit mysql_jdbc;
version = mysql_jdbc.version;
meta = {
platforms = lib.platforms.unix;

View File

@ -3,10 +3,11 @@
, libvorbis, libtheora, speex, libkate, libopus }:
stdenv.mkDerivation rec {
name = "icecast-2.4.4";
pname = "icecast";
version = "2.4.4";
src = fetchurl {
url = "http://downloads.xiph.org/releases/icecast/${name}.tar.gz";
url = "http://downloads.xiph.org/releases/icecast/icecast-${version}.tar.gz";
sha256 = "0i2d9rhav0x6js2qhjf5iy6j2a7f0d11ail0lfv40hb1kygrgda9";
};

View File

@ -4,12 +4,12 @@
}:
stdenv.mkDerivation rec {
name = "icingaweb2-theme-april";
pname = "icingaweb2-theme-april";
version = "1.0.4";
src = fetchFromGitHub {
owner = "Mikesch-mp";
repo = name;
repo = pname;
rev = "v${version}";
sha256 = "0i1js2k47llzgmc77q9frvcmr02mqlhg0qhswx1486fvm6myxg0g";
};

View File

@ -4,12 +4,12 @@
}:
stdenv.mkDerivation rec {
name = "icingaweb2-theme-lsd";
pname = "icingaweb2-theme-lsd";
version = "1.0.3";
src = fetchFromGitHub {
owner = "Mikesch-mp";
repo = name;
repo = pname;
rev = "v${version}";
sha256 = "172y08sar4nbyv5pfq5chw8xa3b7fg1dacmsg778zky5zf49qz2w";
};

View File

@ -4,12 +4,12 @@
}:
stdenv.mkDerivation rec {
name = "icingaweb2-theme-particles";
pname = "icingaweb2-theme-particles";
version = "1.0.0";
src = fetchFromGitHub {
owner = "Mikesch-mp";
repo = name;
repo = pname;
rev = "v${version}";
sha256 = "0m6bbz191686k4djqbk8v0zcdm4cyi159jb3zwz7q295xbpi2vfy";
};

View File

@ -4,12 +4,12 @@
}:
stdenv.mkDerivation rec {
name = "icingaweb2-theme-snow";
pname = "icingaweb2-theme-snow";
version = "1.0.0";
src = fetchFromGitHub {
owner = "Mikesch-mp";
repo = name;
repo = pname;
rev = "v${version}";
sha256 = "1c974v85mbsis52y2knwzh33996q8sza7pqrcs6ydx033s0rxjrp";
};

View File

@ -4,12 +4,12 @@
}:
stdenv.mkDerivation rec {
name = "icingaweb2-theme-spring";
pname = "icingaweb2-theme-spring";
version = "1.0.0";
src = fetchFromGitHub {
owner = "Mikesch-mp";
repo = name;
repo = pname;
rev = "v${version}";
sha256 = "09v4871pndarhm2spxm9fdab58l5wj8m40kh53wvk1xc3g7pqki9";
};

View File

@ -5,13 +5,13 @@
}:
stdenv.mkDerivation rec {
name = "icingaweb2-theme-unicorn";
pname = "icingaweb2-theme-unicorn";
version = "1.0.2";
srcs = [
(fetchFromGitHub {
owner = "Mikesch-mp";
repo = name;
repo = pname;
rev = "v${version}";
sha256 = "1qmcajdf0g70vp2avqa50lfrfigq22k91kggbgn5ablwyg9dki05";
})

View File

@ -1,12 +1,13 @@
{ lib, stdenv, fetchFromGitHub, autoreconfHook, bison, flex, openssl, gnutls }:
stdenv.mkDerivation rec {
name = "charybdis-4.1.2";
pname = "charybdis";
version = "4.1.2";
src = fetchFromGitHub {
owner = "charybdis-ircd";
repo = "charybdis";
rev = name;
rev = "${pname}-${version}";
sha256 = "1lndk0yp27qm8bds4jd204ynxcq92fqmpfb0kkcla5zgky3miks3";
};

View File

@ -1,10 +1,11 @@
{ lib, stdenv, fetchurl, openssl, zlib }:
stdenv.mkDerivation rec {
name = "ircd-hybrid-8.2.36";
pname = "ircd-hybrid";
version = "8.2.36";
src = fetchurl {
url = "mirror://sourceforge/ircd-hybrid/${name}.tgz";
url = "mirror://sourceforge/ircd-hybrid/ircd-hybrid-${version}.tgz";
sha256 = "0sg4g0znl8ic8vklpy96z88gjksc165kl945a6fr1j4xc1bf8gcv";
};

View File

@ -9,7 +9,7 @@
# * Update `version`+`hash` and rebuild.
mkYarnPackage rec {
name = "grafana-image-renderer";
pname = "grafana-image-renderer";
version = "3.0.0";
src = fetchFromGitHub {

View File

@ -2,7 +2,8 @@
buildGoPackage rec {
rev = "3057a2c07061c8d9ffaf77e5442ffd7512ac0133";
name = "heapster-${lib.strings.substring 0 7 rev}";
pname = "heapster";
version = lib.strings.substring 0 7 rev;
goPackagePath = "k8s.io/heapster";
subPackages = [ "./" ];

View File

@ -1,16 +1,13 @@
{ lib, stdenv, fetchurl, jre, makeWrapper }:
let
stdenv.mkDerivation rec {
pname = "jmx-prometheus-httpserver";
version = "0.15.0";
jarName = "jmx_prometheus_httpserver-${version}-jar-with-dependencies.jar";
mavenUrl = "mirror://maven/io/prometheus/jmx/jmx_prometheus_httpserver/${version}/${jarName}";
in stdenv.mkDerivation {
inherit version jarName;
name = "jmx-prometheus-httpserver-${version}";
jarName = "jmx_prometheus_httpserver-${version}-jar-with-dependencies.jar";
src = fetchurl {
url = mavenUrl;
url = "mirror://maven/io/prometheus/jmx/jmx_prometheus_httpserver/${version}/${jarName}";
sha256 = "0fr3svn8kjp7bq1wzbkvv5awylwn8b01bngj04zvk7fpzqpgs7mz";
};

View File

@ -1,7 +1,7 @@
{ lib, fetchFromGitHub, python3Packages, nixosTests }:
python3Packages.buildPythonApplication rec {
name = "tor-exporter-${version}";
pname = "tor-exporter";
version = "0.4";
# Just a single .py file to use as the application's main entry point.

View File

@ -1,11 +1,9 @@
{ lib, stdenv, fetchurl, imake, bison, flex, gccmakedep
, xorgproto, libXau, libXt, libXext, libXaw, libXpm, xorgcffiles }:
let
stdenv.mkDerivation rec {
pname = "nas";
version = "1.9.4";
in stdenv.mkDerivation {
name = "${pname}-${version}";
src = fetchurl {
url = "mirror://sourceforge/${pname}/${pname}-${version}.src.tar.gz";

View File

@ -1,10 +1,11 @@
{ lib, stdenv, fetchurl, autoreconfHook, pkg-config, systemd, glib, dbus, libnl, python2Packages }:
stdenv.mkDerivation rec {
name = "neard-0.16";
pname = "neard";
version = "0.16";
src = fetchurl {
url = "https://git.kernel.org/pub/scm/network/nfc/neard.git/snapshot/${name}.tar.gz";
url = "https://git.kernel.org/pub/scm/network/nfc/neard.git/snapshot/neard-${version}.tar.gz";
sha256 = "0bpdmyxvd3z54p95apz4bjb5jp8hbc04sicjapcryjwa8mh6pbil";
};

View File

@ -1,7 +1,8 @@
{ lib, stdenv, fetchurl, pcre }:
stdenv.mkDerivation {
name = "leafnode-2.0.0.alpha20121101a.12";
pname = "leafnode";
version = "2.0.0.alpha20121101a.12";
src = fetchurl {
url = "http://home.pages.de/~mandree/leafnode/beta/leafnode-2.0.0.alpha20121101a.tar.bz2";

View File

@ -1,7 +1,7 @@
{ lib, fetchurl, python3Packages, php }:
python3Packages.buildPythonApplication rec {
name = "nextcloud-news-updater-${version}";
pname = "nextcloud-news-updater";
version = "10.0.1";
src = fetchurl {

View File

@ -5,7 +5,7 @@ with lib;
let
np = nodePackages.override { generated = ./package.nix; self = np; };
in nodePackages.buildNodePackage rec {
name = "ripple-data-api-${version}";
pname = "ripple-data-api";
version = lib.strings.substring 0 7 rev;
rev = "c56b860105f36c1c44ae011189d495272648c589";

View File

@ -13,10 +13,10 @@ with lib;
stdenv.mkDerivation (rec {
version = elk6Version;
name = "elasticsearch-${optionalString (!enableUnfree) "oss-"}${version}";
pname = "elasticsearch${optionalString (!enableUnfree) "-oss"}";
src = fetchurl {
url = "https://artifacts.elastic.co/downloads/elasticsearch/${name}.tar.gz";
url = "https://artifacts.elastic.co/downloads/elasticsearch/${pname}-${version}.tar.gz";
sha256 =
if enableUnfree
then "09dy3iyzk460vra6na6vk7d3mzpbv4cl0pl7kjmybxy947j7hh42"

View File

@ -27,10 +27,10 @@ let
in
stdenv.mkDerivation (rec {
version = elk7Version;
name = "elasticsearch-${optionalString (!enableUnfree) "oss-"}${version}";
pname = "elasticsearch${optionalString (!enableUnfree) "-oss"}";
src = fetchurl {
url = "https://artifacts.elastic.co/downloads/elasticsearch/${name}-${plat}-${arch}.tar.gz";
url = "https://artifacts.elastic.co/downloads/elasticsearch/${pname}-${version}-${plat}-${arch}.tar.gz";
sha256 = shas.${stdenv.hostPlatform.system} or (throw "Unknown architecture");
};

View File

@ -22,10 +22,11 @@ let
in
with lib;
stdenv.mkDerivation rec {
name = "shishi-1.0.2";
pname = "shishi";
version = "1.0.2";
src = fetchurl {
url = "mirror://gnu/shishi/${name}.tar.gz";
url = "mirror://gnu/shishi/shishi-${version}.tar.gz";
sha256 = "032qf72cpjdfffq1yq54gz3ahgqf2ijca4vl31sfabmjzq9q370d";
};

View File

@ -1,10 +1,11 @@
{ lib, stdenv, fetchurl }:
stdenv.mkDerivation rec {
name = "silc-server-1.1.18";
pname = "silc-server";
version = "1.1.18";
src = fetchurl {
url = "http://silcnet.org/download/server/sources/${name}.tar.bz2";
url = "http://silcnet.org/download/server/sources/silc-server-${version}.tar.bz2";
sha256 = "0nr0hrwr4kbi611qazmrify7a27nzxb5n7d97f5i9cw3avxlw38s";
};

View File

@ -1,10 +1,11 @@
{ fetchurl, lib, stdenv, pkg-config, ucommon, libosip, libexosip, gnutls, zlib }:
stdenv.mkDerivation rec {
name = "sipwitch-1.9.15";
pname = "sipwitch";
version = "1.9.15";
src = fetchurl {
url = "mirror://gnu/sipwitch/${name}.tar.gz";
url = "mirror://gnu/sipwitch/sipwitch-${version}.tar.gz";
sha256 = "2a7aa86a653f6810b3cd9cce6c37b3f70e937e7d14b09fd5c2a70d70588a9482";
};

View File

@ -1,11 +1,12 @@
{lib, stdenv, fetchurl, ant, unzip}:
stdenv.mkDerivation rec {
name = "mysql-connector-java-5.1.46";
pname = "mysql-connector-java";
version = "5.1.46";
builder = ./builder.sh;
src = fetchurl {
url = "http://dev.mysql.com/get/Downloads/Connector-J/${name}.zip";
url = "http://dev.mysql.com/get/Downloads/Connector-J/${pname}-${version}.zip";
sha256 = "0dfjshrrx0ndfb6xbdpwhn1f1jkw0km57rgpar0ny8ixmgdnlwnm";
};

View File

@ -2,7 +2,8 @@
stdenv.mkDerivation {
name = "pg_similarity-1.0";
pname = "pg_similarity";
version = "1.0";
src = fetchFromGitHub {
owner = "eulerto";
repo = "pg_similarity";

View File

@ -1,10 +1,11 @@
{ lib, stdenv, fetchurl, libxml2, openssl, readline, gawk }:
stdenv.mkDerivation rec {
name = "virtuoso-opensource-6.1.6";
pname = "virtuoso-opensource";
version = "6.1.6";
src = fetchurl {
url = "mirror://sourceforge/virtuoso/${name}.tar.gz";
url = "mirror://sourceforge/virtuoso/${pname}-${version}.tar.gz";
sha256 = "0dx0lp7cngdchi0772hp93zzn6sdap7z8s3vay3mzb9xgf0sdgy6";
};
@ -23,7 +24,7 @@ stdenv.mkDerivation rec {
postInstall = ''
echo Moving documentation
mkdir -pv $out/share/doc
mv -v $out/share/virtuoso/doc $out/share/doc/${name}
mv -v $out/share/virtuoso/doc $out/share/doc/${pname}-${version}
echo Removing jars and empty directories
find $out -name "*.a" -delete -o -name "*.jar" -delete -o -type d -empty -delete

View File

@ -1,10 +1,11 @@
{ lib, stdenv, fetchurl, libxml2, openssl, readline, gawk }:
stdenv.mkDerivation rec {
name = "virtuoso-opensource-7.2.4.2";
pname = "virtuoso-opensource";
version = "7.2.4.2";
src = fetchurl {
url = "mirror://sourceforge/virtuoso/${name}.tar.gz";
url = "mirror://sourceforge/virtuoso/${pname}-${version}.tar.gz";
sha256 = "12dqam1gc1v93l0bj0vlpvjqppki6y1hqrlznywxnw0rrz9pb002";
};
@ -21,7 +22,7 @@ stdenv.mkDerivation rec {
postInstall=''
echo Moving documentation
mkdir -pv $out/share/doc
mv -v $out/share/virtuoso/doc $out/share/doc/${name}
mv -v $out/share/virtuoso/doc $out/share/doc/${pname}-${version}
echo Removing jars and empty directories
find $out -name "*.a" -delete -o -name "*.jar" -delete -o -type d -empty -delete
'';

View File

@ -2,7 +2,7 @@
stdenv.mkDerivation rec {
version = "1.0.2";
name = "${varnish.name}-digest-${version}";
pname = "${varnish.name}-digest";
src = fetchFromGitHub {
owner = "varnish";

View File

@ -2,7 +2,7 @@
stdenv.mkDerivation rec {
version = "0.4";
name = "${varnish.name}-dynamic-${version}";
pname = "${varnish.name}-dynamic";
src = fetchFromGitHub {
owner = "nigoroll";

View File

@ -2,7 +2,7 @@
stdenv.mkDerivation rec {
version = "0.15.0";
name = "${varnish.name}-modules-${version}";
pname = "${varnish.name}-modules";
src = fetchFromGitHub {
owner = "varnish";

View File

@ -14,12 +14,12 @@ let
});
in package.override rec {
name = "bookstack";
pname = "bookstack";
version = "21.05.3";
src = fetchFromGitHub {
owner = "bookstackapp";
repo = name;
repo = pname;
rev = "v${version}";
sha256 = "0dymrmy771lv6h9432vw7d12x5xgchjn9s3z8maz3b9d5xlx9gw8";
};

View File

@ -29,7 +29,7 @@ let
in
mkYarnPackage rec {
name = "hedgedoc";
pname = "hedgedoc";
version = "1.8.2";
src = fetchFromGitHub {

View File

@ -13,7 +13,6 @@
let
pname = "plausible";
version = "1.3.0";
name = "${pname}-${version}";
src = fetchFromGitHub {
owner = "plausible";

View File

@ -95,7 +95,8 @@ let
];
};
in stdenv.mkDerivation {
name = "xquartz-${lib.getVersion xorg.xorgserver}";
pname = "xquartz";
version = lib.getVersion xorg.xorgserver;
nativeBuildInputs = [ ruby makeWrapper ];

View File

@ -1,10 +1,11 @@
{ fetchurl, fetchpatch, lib, stdenv, libtirpc }:
stdenv.mkDerivation rec {
name = "xinetd-2.3.15";
pname = "xinetd";
version = "2.3.15";
src = fetchurl {
url = "http://www.xinetd.org/${name}.tar.gz";
url = "http://www.xinetd.org/xinetd-${version}.tar.gz";
sha256 = "1qsv1al506x33gh92bqa8w21k7mxqrbsrwmxvkj0amn72420ckmz";
};