File tree Expand file tree Collapse file tree 1 file changed +6
-19
lines changed Expand file tree Collapse file tree 1 file changed +6
-19
lines changed Original file line number Diff line number Diff line change 22 lib ,
33 buildGoModule ,
44 fetchFromGitHub ,
5- ast-grep ,
65 versionCheckHook ,
76 nix-update-script ,
87 lipo-go ,
98} :
10- buildGoModule rec {
9+ buildGoModule ( finalAttrs : {
1110 pname = "lipo-go" ;
1211 version = "0.10.0" ;
1312
1413 src = fetchFromGitHub {
1514 owner = "konoui" ;
1615 repo = "lipo" ;
17- tag = "v${ version } " ;
16+ tag = "v${ finalAttrs . version } " ;
1817 hash = "sha256-V1KlgCNKvxnY/B8cmiWFdXzHH6k6VmhNMIta3nckXtA=" ;
1918 } ;
2019 vendorHash = "sha256-7M6CRxJd4fgYQLJDkNa3ds3f7jOp3dyloOZtwMtCBQk=" ;
2120
22- nativeBuildInputs = [ ast-grep ] ;
23-
24- postPatch =
25- # Remove the test case that is not compatible with nix-build
26- ''
27- ast-grep run \
28- --pattern 'func TestLipo_ArchsToLocalFiles($$$) { $$$ }' \
29- --rewrite "" \
30- pkg/lipo/archs_test.go
31- '' ;
3221 buildPhase = ''
3322 runHook preBuild
3423
35- make build VERSION=${ version } REVISION="" BINARY=$out/bin/lipo
24+ make build VERSION=${ finalAttrs . version } REVISION="" BINARY=$out/bin/lipo
3625
3726 runHook postBuild
3827 '' ;
@@ -44,16 +33,14 @@ buildGoModule rec {
4433 versionCheckProgramArg = "-version" ;
4534 doInstallCheck = true ;
4635
47- passthru = {
48- updateScript = nix-update-script { } ;
49- } ;
36+ passthru . updateScript = nix-update-script { } ;
5037
5138 meta = {
5239 description = "Designed to be compatible with macOS lipo, written in golang" ;
5340 homepage = "https://github.com/konoui/lipo" ;
54- changelog = "https://github.com/konoui/lipo/releases/tag/v${ version } " ;
41+ changelog = "https://github.com/konoui/lipo/releases/tag/v${ finalAttrs . version } " ;
5542 license = lib . licenses . mit ;
5643 maintainers = with lib . maintainers ; [ xiaoxiangmoe ] ;
5744 mainProgram = "lipo" ;
5845 } ;
59- }
46+ } )
You can’t perform that action at this time.
0 commit comments