spicetify-cli: make use of finalAttrs
This commit is contained in:
@@ -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";
|
||||
};
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user