tools/system: replace name with pname&version

This commit is contained in:
Felix Buehler 2021-07-27 19:38:37 +02:00
parent 16b7e4900e
commit e170c65244
3 changed files with 9 additions and 6 deletions

View file

@ -1,10 +1,11 @@
{ lib, stdenv, fetchurl }:
stdenv.mkDerivation rec {
name = "stress-1.0.4";
pname = "stress";
version = "1.0.4";
src = fetchurl {
url = "https://people.seas.harvard.edu/~apw/stress/${name}.tar.gz";
url = "https://people.seas.harvard.edu/~apw/stress/stress-${version}.tar.gz";
sha256 = "0nw210jajk38m3y7h8s130ps2qsbz7j75wab07hi2r3hlz14yzh5";
};

View file

@ -3,8 +3,8 @@
}:
stdenv.mkDerivation rec {
name = "ts-1.0";
pname = "ts";
version = "1.0";
installPhase=''make install "PREFIX=$out"'';
@ -13,7 +13,7 @@ stdenv.mkDerivation rec {
'';
src = fetchurl {
url = "http://viric.name/~viric/soft/ts/${name}.tar.gz";
url = "https://viric.name/~viric/soft/ts/ts-${version}.tar.gz";
sha256 = "15dkzczx10fhl0zs9bmcgkxfbwq2znc7bpscljm4rchbzx7y6lsg";
};

View file

@ -1,7 +1,9 @@
{ lib, stdenv, fetchFromGitHub }:
stdenv.mkDerivation {
name = "undaemonize-2017-07-11";
pname = "undaemonize";
version = "unstable-2017-07-11";
src = fetchFromGitHub {
repo = "undaemonize";
owner = "nickstenning";