process-compose: use finalAttrs pattern instead of rec
...to refer to version this makes it possible to correctly override version everywhere it is used
This commit is contained in:
@@ -8,15 +8,16 @@
|
||||
let
|
||||
config-module = "github.com/f1bonacc1/process-compose/src/config";
|
||||
in
|
||||
buildGoModule rec {
|
||||
buildGoModule (finalAttrs: {
|
||||
pname = "process-compose";
|
||||
version = "1.75.2";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "F1bonacc1";
|
||||
repo = "process-compose";
|
||||
tag = "v${version}";
|
||||
tag = "v${finalAttrs.version}";
|
||||
hash = "sha256-BKf8FrgpGhYzuukAFP+OCjvp5bMCQL6BmZ+Tk/E8RIY=";
|
||||
|
||||
# populate values that require us to use git. By doing this in postFetch we
|
||||
# can delete .git afterwards and maintain better reproducibility of the src.
|
||||
leaveDotGit = true;
|
||||
@@ -36,7 +37,7 @@ buildGoModule rec {
|
||||
'';
|
||||
|
||||
ldflags = [
|
||||
"-X ${config-module}.Version=v${version}"
|
||||
"-X ${config-module}.Version=v${finalAttrs.version}"
|
||||
"-s"
|
||||
"-w"
|
||||
];
|
||||
@@ -61,9 +62,9 @@ buildGoModule rec {
|
||||
meta = {
|
||||
description = "Simple and flexible scheduler and orchestrator to manage non-containerized applications";
|
||||
homepage = "https://github.com/F1bonacc1/process-compose";
|
||||
changelog = "https://github.com/F1bonacc1/process-compose/releases/tag/v${version}";
|
||||
changelog = "https://github.com/F1bonacc1/process-compose/releases/tag/v${finalAttrs.version}";
|
||||
license = lib.licenses.asl20;
|
||||
maintainers = with lib.maintainers; [ thenonameguy ];
|
||||
mainProgram = "process-compose";
|
||||
};
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user