treewide: pkgs: rec -> finalAttrs

This commit is contained in:
Guanran Wang 2024-01-16 22:21:32 +08:00
parent 9f85efaa60
commit ff8fb53d2a
Signed by: nyancat
SSH key fingerprint: SHA256:8oWGKciPALWut/6WA27oFKofX+6Wtc0gQnsefXLQx/8
2 changed files with 6 additions and 6 deletions

View file

@ -3,12 +3,12 @@
stdenvNoCC,
fetchurl,
}:
stdenvNoCC.mkDerivation rec {
stdenvNoCC.mkDerivation (finalAttrs: {
pname = "metacubexd";
version = "1.134.0";
src = fetchurl {
url = "https://github.com/MetaCubeX/metacubexd/releases/download/v${version}/compressed-dist.tgz";
url = "https://github.com/MetaCubeX/metacubexd/releases/download/v${finalAttrs.version}/compressed-dist.tgz";
hash = "sha256-Xx2UReUAxHg4CrKqGs9vGmWRsosJE1OqnYSmp2wOC9M=";
};
@ -27,4 +27,4 @@ stdenvNoCC.mkDerivation rec {
license = licenses.mit;
platforms = platforms.all;
};
}
})

View file

@ -5,7 +5,7 @@
}:
# TODO: use buildLua
# error: evaluation aborted with the following error message: 'lib.customisation.callPackageWith: Function called without required argument "buildLua"
stdenvNoCC.mkDerivation rec {
stdenvNoCC.mkDerivation (finalAttrs: {
pname = "modernx";
version = "0.2.4";
@ -13,7 +13,7 @@ stdenvNoCC.mkDerivation rec {
src = fetchFromGitHub {
owner = "zydezu";
repo = "ModernX";
rev = version;
rev = finalAttrs.version;
hash = "sha256-b5dJeJ5GPEKhyznYIAQ3YzUq01rYUhDbci1ilNuXrdk=";
};
@ -36,4 +36,4 @@ stdenvNoCC.mkDerivation rec {
license = licenses.gpl2; # https://github.com/maoiscat/mpv-osc-modern/issues/43
platforms = platforms.all;
};
}
})