_0xpropo: switch to finalAttrs pattern (#527150)
This commit is contained in:
@@ -3,16 +3,16 @@
|
||||
stdenvNoCC,
|
||||
fetchzip,
|
||||
}:
|
||||
stdenvNoCC.mkDerivation rec {
|
||||
stdenvNoCC.mkDerivation (finalAttrs: {
|
||||
pname = "0xpropo";
|
||||
version = "1.100";
|
||||
|
||||
src =
|
||||
let
|
||||
underscoreVersion = builtins.replaceStrings [ "." ] [ "_" ] version;
|
||||
underscoreVersion = builtins.replaceStrings [ "." ] [ "_" ] finalAttrs.version;
|
||||
in
|
||||
fetchzip {
|
||||
url = "https://github.com/0xType/0xPropo/releases/download/${version}/0xPropo_${underscoreVersion}.zip";
|
||||
url = "https://github.com/0xType/0xPropo/releases/download/${finalAttrs.version}/0xPropo_${underscoreVersion}.zip";
|
||||
hash = "sha256-ZlZNvn9xiOxS+dfGI1rGbh6XlXo3/puAm2vhKh63sK4=";
|
||||
};
|
||||
|
||||
@@ -26,9 +26,9 @@ stdenvNoCC.mkDerivation rec {
|
||||
meta = {
|
||||
description = "Proportional version of the 0xProto font";
|
||||
homepage = "https://github.com/0xType/0xPropo";
|
||||
changelog = "https://github.com/0xType/0xPropo/releases/tag/${version}";
|
||||
changelog = "https://github.com/0xType/0xPropo/releases/tag/${finalAttrs.version}";
|
||||
license = lib.licenses.ofl;
|
||||
maintainers = with lib.maintainers; [ vinnymeller ];
|
||||
platforms = lib.platforms.all;
|
||||
};
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user