spicetify-cli: make use of finalAttrs

This commit is contained in:
Acid Bong
2025-04-15 20:41:00 +03:00
parent e699969210
commit cc3ee8fdfb
+6 -9
View File
@@ -6,17 +6,14 @@
replaceVars,
spicetify-cli,
}:
let
version = "2.39.6";
in
buildGoModule {
buildGoModule (finalAttrs: {
pname = "spicetify-cli";
inherit version;
version = "2.39.6";
src = fetchFromGitHub {
owner = "spicetify";
repo = "cli";
tag = "v${version}";
tag = "v${finalAttrs.version}";
hash = "sha256-rdyHVHKVgl9fOviFYQuXY8Ko+/XwpKlKDfriQAgkusE=";
};
@@ -24,13 +21,13 @@ buildGoModule {
ldflags = [
"-s -w"
"-X 'main.version=${version}'"
"-X 'main.version=${finalAttrs.version}'"
];
patches = [
# Stops spicetify from attempting to fetch a newer css-map.json
(replaceVars ./version.patch {
inherit version;
inherit (finalAttrs) version;
})
];
@@ -64,4 +61,4 @@ buildGoModule {
];
mainProgram = "spicetify";
};
}
})