Skip to content

Commit 5ddd25d

Browse files
omnom: 0-unstable-2024-11-20 -> 0.3.0 (NixOS#394006)
2 parents df57346 + 8b14e3d commit 5ddd25d

File tree

1 file changed

+10
-7
lines changed

1 file changed

+10
-7
lines changed

pkgs/by-name/om/omnom/package.nix

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,27 +2,30 @@
22
lib,
33
buildGoModule,
44
fetchFromGitHub,
5+
nix-update-script,
56
makeWrapper,
67

78
# for addons
89
buildNpmPackage,
910
zip,
1011
}:
1112

12-
buildGoModule rec {
13+
buildGoModule (finalAttrs: {
1314
pname = "omnom";
14-
version = "0-unstable-2024-11-20";
15+
version = "0.3.0";
1516

1617
src = fetchFromGitHub {
1718
owner = "asciimoo";
1819
repo = "omnom";
19-
rev = "dbf40c9c50b74335286faea7c5070bba11dced83";
20-
hash = "sha256-dl0jfFwn+Fd8/aQNhXFNEoDIMgMia2MHZntp0EKhimg=";
20+
tag = "v${finalAttrs.version}";
21+
hash = "sha256-2D+hEOlyjCJQKnLBBO1cXeqTS/QUWraPWPtI8pCf9KM=";
2122
fetchSubmodules = true;
2223
};
2324

2425
vendorHash = "sha256-dsS5w8JXIwkneWScOFzLSDiXq+clgK+RdYiMw0+FnvY=";
2526

27+
passthru.updateScript = nix-update-script { };
28+
2629
patches = [ ./0001-fix-minimal-go-version.patch ];
2730

2831
nativeBuildInputs = [ makeWrapper ];
@@ -36,10 +39,10 @@ buildGoModule rec {
3639
let
3740
omnom-addons = buildNpmPackage {
3841
pname = "omnom-addons";
39-
inherit version src;
42+
inherit (finalAttrs) version src;
4043

4144
npmDepsHash = "sha256-sUn5IvcHWJ/yaqeGz9SGvGx9HHAlrcnS0lJxIxUVS6M=";
42-
sourceRoot = "${src.name}/ext";
45+
sourceRoot = "${finalAttrs.src.name}/ext";
4346
npmPackFlags = [ "--ignore-scripts" ];
4447

4548
nativeBuildInputs = [ zip ];
@@ -81,4 +84,4 @@ buildGoModule rec {
8184
maintainers = lib.teams.ngi.members;
8285
mainProgram = "omnom";
8386
};
84-
}
87+
})

0 commit comments

Comments
 (0)