File tree Expand file tree Collapse file tree 1 file changed +10
-7
lines changed
Expand file tree Collapse file tree 1 file changed +10
-7
lines changed Original file line number Diff line number Diff line change 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+ } )
You can’t perform that action at this time.
0 commit comments