treewide: rename name to pname&version

This commit is contained in:
Felix Buehler
2022-03-01 11:39:32 +01:00
parent 7e49720ea1
commit 783d2679e5
20 changed files with 43 additions and 36 deletions

View File

@@ -2,15 +2,15 @@
{ version, artifactId, groupId, sha512, type ? "jar", suffix ? "" }:
let
name = "${artifactId}-${version}";
m2Path = "${builtins.replaceStrings ["."] ["/"] groupId}/${artifactId}/${version}";
m2File = "${name}${suffix}.${type}";
m2File = "${artifactId}-${version}${suffix}.${type}";
src = fetchurl {
inherit sha512;
url = "mirror://maven/${m2Path}/${m2File}";
};
in stdenv.mkDerivation {
inherit name m2Path m2File src;
inherit version m2Path m2File src;
pname = artifactId;
dontUnpack = true;