tools/{security/system}: replace name with pname&version

This commit is contained in:
Felix Buehler 2021-07-27 16:21:24 +02:00
parent 5ecd150391
commit 051fcdbe8b
36 changed files with 115 additions and 81 deletions

View File

@ -1,8 +1,10 @@
{ lib, stdenv, fetchurl, openssl }:
stdenv.mkDerivation rec {
name = "apg-2.3.0b";
pname = "apg";
version = "2.3.0b";
src = fetchurl {
url = "http://www.adel.nursat.kz/apg/download/${name}.tar.gz";
url = "http://www.adel.nursat.kz/apg/download/apg-${version}.tar.gz";
sha256 = "14lbq81xrcsmpk1b9qmqyz7n6ypf08zcxvcvp6f7ybcyf0lj1rfi";
};
configurePhase = ''

View File

@ -1,10 +1,11 @@
{lib, stdenv, fetchurl, perl}:
stdenv.mkDerivation {
name = "ccrypt-1.11";
stdenv.mkDerivation rec {
pname = "ccrypt";
version = "1.11";
src = fetchurl {
url = "mirror://sourceforge/ccrypt/ccrypt-1.11.tar.gz";
url = "mirror://sourceforge/ccrypt/ccrypt-${version}.tar.gz";
sha256 = "0kx4a5mhmp73ljknl2lcccmw9z3f5y8lqw0ghaymzvln1984g75i";
};

View File

@ -23,7 +23,7 @@ let
in
stdenv.mkDerivation rec {
name = "chaps-0.42-6812";
pname = "chaps";
version = "0.42-6812";
src = fetchFromGitHub {
@ -59,25 +59,25 @@ stdenv.mkDerivation rec {
installPhase = ''
mkdir -p $out/bin
cp ${name}/out/chapsd $out/bin/.
cp ${name}/out/chaps_client $out/bin/.
cp ${pname}-${version}/out/chapsd $out/bin/.
cp ${pname}-${version}/out/chaps_client $out/bin/.
mkdir -p $out/lib
cp ${name}/out/libchaps.so.* $out/lib/.
cp ${pname}-${version}/out/libchaps.so.* $out/lib/.
mkdir -p $out/lib/security
cp ${name}/out/pam_chaps.so $out/lib/security/.
cp ${pname}-${version}/out/pam_chaps.so $out/lib/security/.
mkdir -p $out/include
cp -r ${name}/out/chaps $out/include/.
cp -r ${pname}-${version}/out/chaps $out/include/.
mkdir -p $out/etc/dbus-1/system.d
cp ${name}/out/org.chromium.Chaps.conf $out/etc/dbus-1/system.d/.
cp ${pname}-${version}/out/org.chromium.Chaps.conf $out/etc/dbus-1/system.d/.
mkdir -p $out/etc/dbus-1/system-services
cp ${name}/platform2/chaps/org.chromium.Chaps.service $out/etc/dbus-1/system-services/.
cp ${pname}-${version}/platform2/chaps/org.chromium.Chaps.service $out/etc/dbus-1/system-services/.
mkdir -p $out/usr/share/pam-configs/chaps
mkdir -p $out/usr/share/man/man8
cp ${name}/man/* $out/usr/share/man/man8/.
cp ${pname}-${version}/man/* $out/usr/share/man/man8/.
'';
meta = with lib; {

View File

@ -2,9 +2,10 @@
, libiconv}:
stdenv.mkDerivation rec {
name = "dirmngr-1.1.1";
pname = "dirmngr";
version = "1.1.1";
src = fetchurl {
url = "mirror://gnupg/dirmngr/${name}.tar.bz2";
url = "mirror://gnupg/dirmngr/dirmngr-${version}.tar.bz2";
sha256 = "1zz6m87ca55nq5f59hzm6qs48d37h93il881y7d0rf2d6660na6j";
};
buildInputs = [ libgpgerror libgcrypt libassuan libksba

View File

@ -1,7 +1,8 @@
{ lib, buildGoPackage, fetchFromGitHub }:
buildGoPackage rec {
name = "hologram-2018-03-19";
pname = "hologram";
version = "2018-03-19";
rev = "a7bab58642b530edb75b9cf6c1d834c85822ceac";
src = fetchFromGitHub {

View File

@ -1,7 +1,8 @@
{ lib, stdenv, fetchFromGitHub, openssl, which }:
stdenv.mkDerivation {
name = "mbox-20140526";
pname = "mbox";
version = "20140526";
src = fetchFromGitHub {
owner = "tsgates";

View File

@ -1,7 +1,8 @@
{ lib, stdenv, fetchhg, openssl, pcre-cpp, qt4, boost, pkcs11helper }:
stdenv.mkDerivation {
name = "meo-20121113";
pname = "meo";
version = "20121113";
src = fetchhg {
url = "http://oss.stamfest.net/hg/meo";

View File

@ -1,10 +1,11 @@
{ lib, stdenv, fetchurl }:
stdenv.mkDerivation {
name = "mkrand-0.1.0";
stdenv.mkDerivation rec {
pname = "mkrand";
version = "0.1.0";
src = fetchurl {
url = "https://github.com/mknight-tag/MKRAND/releases/download/v0.1.0/mkrand-0.1.0.tar.gz";
url = "https://github.com/mknight-tag/MKRAND/releases/download/v${version}/mkrand-${version}.tar.gz";
sha256 = "1irwyv2j5c3606k3qbq77yrd65y27rcq3jdlp295rz875q8iq9fs";
};

View File

@ -1,7 +1,8 @@
{ lib, stdenv, fetchurl, groff }:
stdenv.mkDerivation {
name = "mktemp-1.7";
stdenv.mkDerivation rec {
pname = "mktemp";
version = "1.7";
# Have `configure' avoid `/usr/bin/nroff' in non-chroot builds.
NROFF = "${groff}/bin/nroff";
@ -12,7 +13,7 @@ stdenv.mkDerivation {
'';
src = fetchurl {
url = "ftp://ftp.mktemp.org/pub/mktemp/mktemp-1.7.tar.gz";
url = "ftp://ftp.mktemp.org/pub/mktemp/mktemp-${version}.tar.gz";
sha256 = "0x969152znxxjbj7387xb38waslr4yv6bnj5jmhb4rpqxphvk54f";
};

View File

@ -1,12 +1,13 @@
{ lib, stdenv, fetchFromGitHub, autoreconfHook, gawk, gnused, libgcrypt, zlib, bzip2 }:
stdenv.mkDerivation rec {
name = "munge-0.5.14";
pname = "munge";
version = "0.5.14";
src = fetchFromGitHub {
owner = "dun";
repo = "munge";
rev = name;
rev = "${pname}-${version}";
sha256 = "15h805rwcb9f89dyrkxfclzs41n3ff8x7cc1dbvs8mb0ds682c4j";
};

View File

@ -1,10 +1,11 @@
{ lib, stdenv, fetchurl, pam }:
stdenv.mkDerivation rec {
name = "pamtester-0.1.2";
pname = "pamtester";
version = "0.1.2";
src = fetchurl {
url = "mirror://sourceforge/pamtester/${name}.tar.gz";
url = "mirror://sourceforge/pamtester/pamtester-${version}.tar.gz";
sha256 = "1mdj1wj0adcnx354fs17928yn2xfr1hj5mfraq282dagi873sqw3";
};

View File

@ -1,9 +1,10 @@
{lib, stdenv, fetchurl, autoreconfHook}:
stdenv.mkDerivation {
name = "pwgen-2.08";
stdenv.mkDerivation rec {
pname = "pwgen";
version = "2.08";
src = fetchurl {
url = "https://github.com/tytso/pwgen/archive/v2.08.tar.gz";
url = "https://github.com/tytso/pwgen/archive/v${version}.tar.gz";
sha256 = "8d6e94f28655e61d6126290e3eafad4d17d7fba0d0d354239522a740a270bb2f";
};

View File

@ -1,11 +1,12 @@
{ lib, stdenv, fetchurl, fetchpatch }:
stdenv.mkDerivation rec {
name = "super-3.30.0";
pname = "super";
version = "3.30.0";
src = fetchurl {
name = "${name}.tar.gz";
url = "https://www.ucolick.org/~will/RUE/super/${name}-tar.gz";
name = "super-${version}.tar.gz";
url = "https://www.ucolick.org/~will/RUE/super/super-${version}-tar.gz";
sha256 = "0k476f83w7f45y9jpyxwr00ikv1vhjiq0c26fgjch9hnv18icvwy";
};

View File

@ -1,10 +1,11 @@
{ fetchurl, lib, stdenv }:
stdenv.mkDerivation rec {
name = "acct-6.6.4";
pname = "acct";
version = "6.6.4";
src = fetchurl {
url = "mirror://gnu/acct/${name}.tar.gz";
url = "mirror://gnu/acct/acct-${version}.tar.gz";
sha256 = "0gv6m8giazshvgpvwbng98chpas09myyfw1zr2y7hqxib0mvy5ac";
};

View File

@ -1,10 +1,11 @@
{ fetchurl, lib, stdenv }:
stdenv.mkDerivation rec {
name = "actkbd-0.2.8";
pname = "actkbd";
version = "0.2.8";
src = fetchurl {
url = "http://users.softlab.ece.ntua.gr/~thkala/projects/actkbd/files/${name}.tar.bz2";
url = "http://users.softlab.ece.ntua.gr/~thkala/projects/actkbd/files/actkbd-${version}.tar.bz2";
sha256 = "1ipb7k5q7k7p54is96ij2n74jfa6xc0llb9lpjwxhsqviqxn9slm";
};

View File

@ -1,10 +1,11 @@
{ lib, stdenv, fetchurl }:
stdenv.mkDerivation {
name = "bar-1.11.1";
stdenv.mkDerivation rec {
pname = "bar";
version = "1.11.1";
src = fetchurl {
url = "mirror://sourceforge/project/clpbar/clpbar/bar-1.11.1/bar_1.11.1.tar.gz";
url = "mirror://sourceforge/project/clpbar/clpbar/bar-${version}/bar_${version}.tar.gz";
sha256 = "00v5cb6vzizyyhflgr62d3k8dqc0rg6wdgfyyk11c0s0r32mw3zs";
};

View File

@ -1,9 +1,11 @@
{lib, stdenv, fetchurl, vim, sendmailPath ? "/usr/sbin/sendmail"}:
stdenv.mkDerivation {
name = "cron-4.1";
stdenv.mkDerivation rec {
pname = "cron";
version = "4.1";
src = fetchurl {
url = "ftp://ftp.isc.org/isc/cron/cron_4.1.shar";
url = "ftp://ftp.isc.org/isc/cron/cron_${version}.shar";
sha256 = "16n3dras4b1jh7g958nz1k54pl9pg5fwb3fvjln8z67varvq6if4";
};

View File

@ -1,10 +1,11 @@
{ lib, stdenv, fetchurl }:
stdenv.mkDerivation rec {
name = "dcfldd-1.3.4-1";
pname = "dcfldd";
version = "1.3.4-1";
src = fetchurl {
url = "mirror://sourceforge/dcfldd/${name}.tar.gz";
url = "mirror://sourceforge/dcfldd/dcfldd-${version}.tar.gz";
sha256 = "1y6mwsvm75f5jzxsjjk0yhf8xnpmz6y8qvcxfandavx59lc3l57m";
};

View File

@ -3,10 +3,11 @@
}:
stdenv.mkDerivation rec {
name = "ddrescue-1.25";
pname = "ddrescue";
version = "1.25";
src = fetchurl {
url = "mirror://gnu/ddrescue/${name}.tar.lz";
url = "mirror://gnu/ddrescue/ddrescue-${version}.tar.lz";
sha256 = "0qqh38izl5ppap9a5izf3hijh94k65s3zbfkczd4b7x04syqwlyf";
};

View File

@ -6,7 +6,6 @@ let
in stdenv.mkDerivation rec {
pname = "ddrescueview";
version = "${versionBase}${versionSuffix}";
name = "ddrescueview-0.4alpha4";
src = fetchurl {
name = "ddrescueview-${versionBase}${versionSuffix}.tar.xz";

View File

@ -1,10 +1,11 @@
{lib, stdenv, fetchurl}:
stdenv.mkDerivation {
name = "dog-1.7";
stdenv.mkDerivation rec {
pname = "dog";
version = "1.7";
src = fetchurl {
url = "http://archive.debian.org/debian/pool/main/d/dog/dog_1.7.orig.tar.gz";
url = "http://archive.debian.org/debian/pool/main/d/dog/dog_${version}.orig.tar.gz";
sha256 = "3ef25907ec5d1dfb0df94c9388c020b593fbe162d7aaa9bd08f35d2a125af056";
};

View File

@ -1,10 +1,11 @@
{ fetchurl, lib, stdenv, parted, libuuid, gettext, guile }:
stdenv.mkDerivation rec {
name = "gnufdisk-2.0.0a"; # .0a1 seems broken, see https://lists.gnu.org/archive/html/bug-fdisk/2012-09/msg00000.html
pname = "gnufdisk";
version = "2.0.0a"; # .0a1 seems broken, see https://lists.gnu.org/archive/html/bug-fdisk/2012-09/msg00000.html
src = fetchurl {
url = "mirror://gnu/fdisk/${name}.tar.gz";
url = "mirror://gnu/fdisk/gnufdisk-${version}.tar.gz";
sha256 = "04nd7civ561x2lwcmxhsqbprml3178jfc58fy1v7hzqg5k4nbhy3";
};

View File

@ -1,10 +1,11 @@
{ lib, stdenv, fetchurl, gtk2, pkg-config, libxml2, intltool, gettext }:
stdenv.mkDerivation rec {
name = "gdmap-0.8.1";
pname = "gdmap";
version = "0.8.1";
src = fetchurl {
url = "mirror://sourceforge/gdmap/${name}.tar.gz";
url = "mirror://sourceforge/gdmap/gdmap-${version}.tar.gz";
sha256 = "0nr8l88cg19zj585hczj8v73yh21k7j13xivhlzl8jdk0j0cj052";
};

View File

@ -1,10 +1,11 @@
{lib, stdenv, fetchurl}:
stdenv.mkDerivation rec {
name = "gt5-1.4.0";
pname = "gt5";
version = "1.4.0";
src = fetchurl {
url = "mirror://sourceforge/gt5/${name}.tar.gz";
url = "mirror://sourceforge/gt5/gt5-${version}.tar.gz";
sha256 = "0gm0gzyp4d9rxqddbaskbz5zvmlhyr4nyb5x9g7x4abyyxqjlnkq";
};

View File

@ -1,10 +1,11 @@
{lib, stdenv, fetchurl}:
stdenv.mkDerivation {
name = "idle3-tools-0.9.1";
stdenv.mkDerivation rec {
pname = "idle3-tools";
version = "0.9.1";
src = fetchurl {
url = "mirror://sourceforge/idle3-tools/idle3-tools-0.9.1.tgz";
url = "mirror://sourceforge/idle3-tools/idle3-tools-${version}.tgz";
sha256 = "00ia7xq9yldxyl9gz0mr4xa568nav14p0fnv82f2rbbkg060cy4p";
};

View File

@ -1,11 +1,12 @@
{ lib, stdenv, fetchFromGitHub, bash }:
stdenv.mkDerivation rec {
name = "incron-0.5.12";
pname = "incron";
version = "0.5.12";
src = fetchFromGitHub {
owner = "ar-";
repo = "incron";
rev = name;
rev = "${pname}-${version}";
sha256 = "11d5f98cjafiv9h9zzzrw2s06s2fvdg8gp64km7mdprd2xmy6dih";
};

View File

@ -1,14 +1,14 @@
{ stdenv, lib, fetchurl, openssl, fetchpatch, static ? stdenv.hostPlatform.isStatic }:
let
pkgname = "ipmitool";
pname = "ipmitool";
version = "1.8.18";
in
stdenv.mkDerivation {
name = "${pkgname}-${version}";
inherit pname version;
src = fetchurl {
url = "mirror://sourceforge/${pkgname}/${pkgname}-${version}.tar.gz";
url = "mirror://sourceforge/${pname}/${pname}-${version}.tar.gz";
sha256 = "0kfh8ny35rvwxwah4yv91a05qwpx74b5slq2lhrh71wz572va93m";
};

View File

@ -1,7 +1,8 @@
{ lib, stdenv, fetchgit, ... }:
stdenv.mkDerivation {
name = "loadwatch-1.1-1-g6d2544c";
pname = "loadwatch";
version = "1.1-1-g6d2544c";
src = fetchgit {
url = "git://woffs.de/git/fd/loadwatch.git";
sha256 = "1bhw5ywvhyb6snidsnllfpdi1migy73wg2gchhsfbcpm8aaz9c9b";

View File

@ -1,7 +1,8 @@
{ lib, fetchFromGitHub, buildGoPackage, m4 }:
buildGoPackage rec {
name = "localtime-2017-11-07";
pname = "localtime";
version = "2017-11-07";
src = fetchFromGitHub {
owner = "Stebalien";

View File

@ -1,10 +1,11 @@
{ fetchurl, lib, stdenv, guile, which, ed, libtool }:
stdenv.mkDerivation rec {
name = "mcron-1.0.6";
pname = "mcron";
version = "1.0.6";
src = fetchurl {
url = "mirror://gnu/mcron/${name}.tar.gz";
url = "mirror://gnu/mcron/mcron-${version}.tar.gz";
sha256 = "0yvrfzzdy2m7fbqkr61fw01wd9r2jpnbyabxhcsfivgxywknl0fy";
};

View File

@ -6,10 +6,11 @@
}:
stdenv.mkDerivation rec {
name = "monit-5.27.2";
pname = "monit";
version = "5.27.2";
src = fetchurl {
url = "${meta.homepage}dist/${name}.tar.gz";
url = "${meta.homepage}dist/monit-${version}.tar.gz";
sha256 = "sha256-2ICceNXcHtenujKlpVxRFIVRMsxNpIBfjTqvjPRuqkw=";
};

View File

@ -1,7 +1,8 @@
{ lib, stdenv, fetchFromGitHub, opencl-clhpp, ocl-icd }:
stdenv.mkDerivation {
name = "opencl-info-2014-02-21";
pname = "opencl-info";
version = "2014-02-21";
src = fetchFromGitHub {
owner = "marchv";

View File

@ -5,10 +5,11 @@
}:
stdenv.mkDerivation rec {
name = "pciutils-3.7.0"; # with release-date database
pname = "pciutils";
version = "3.7.0"; # with release-date database
src = fetchurl {
url = "mirror://kernel/software/utils/pciutils/${name}.tar.xz";
url = "mirror://kernel/software/utils/pciutils/pciutils-${version}.tar.xz";
sha256 = "1ss0rnfsx8gvqjxaji4mvbhf9xyih4cadmgadbwwv8mnx1xvjh4x";
};

View File

@ -1,7 +1,8 @@
{ lib, stdenv, fetchFromGitHub }:
stdenv.mkDerivation {
name = "rowhammer-test-20150811";
pname = "rowhammer-test";
version = "20150811";
src = fetchFromGitHub {
owner = "google";

View File

@ -1,10 +1,11 @@
{ lib, stdenv, fetchurl }:
stdenv.mkDerivation rec {
name = "safecopy-1.7";
pname = "safecopy";
version = "1.7";
src = fetchurl {
url = "mirror://sourceforge/project/safecopy/safecopy/${name}/${name}.tar.gz";
url = "mirror://sourceforge/project/safecopy/safecopy/safecopy-${version}/safecopy-${version}.tar.gz";
sha256 = "1zf4kk9r8za9pn4hzy1y3j02vrhl1rxfk5adyfq0w0k48xfyvys2";
};

View File

@ -1,10 +1,11 @@
{ lib, stdenv, fetchurl }:
stdenv.mkDerivation rec {
name = "sg3_utils-1.45";
pname = "sg3_utils";
version = "1.45";
src = fetchurl {
url = "http://sg.danny.cz/sg/p/${name}.tgz";
url = "http://sg.danny.cz/sg/p/sg3_utils-${version}.tgz";
sha256 = "0qasc3qm4i8swjfaywiwpgz76gdxqvm47qycxgmprbsjmxqwk1qb";
};