File tree Expand file tree Collapse file tree 2 files changed +15
-6
lines changed
Expand file tree Collapse file tree 2 files changed +15
-6
lines changed Original file line number Diff line number Diff line change 11{ pkgs } :
22drv :
3- pkgs . buildPackages . runCommand drv . name
3+ with pkgs ;
4+ buildPackages . runCommand drv . name
45{
56 inherit ( drv ) exeName exePath meta passthru ;
6- } ''
7+ # this is to ensure we are re-signing macOS binaries that might have been
8+ # mutilated by set-git-rev (e.g. patching in the git revision.)
9+ nativeBuildInputs = lib . optionals hostPlatform . isDarwin [ darwin . signingUtils ] ;
10+ } ( ''
711 mkdir -p $out
812 cp --no-preserve=timestamps --recursive ${ drv } /* $out/
913 chmod -R +w $out/bin
10- ${ pkgs . pkgsBuildBuild . haskellBuildUtils } /bin/set-git-rev "${ pkgs . gitrev } " $out/bin/*
11- ''
14+ ${ pkgsBuildBuild . haskellBuildUtils } /bin/set-git-rev "${ gitrev } " $out/bin/*
15+ '' + lib . optionalString hostPlatform . isDarwin ''
16+ for exe in $out/bin/*; do
17+ signIfRequired "$exe"
18+ done
19+ '' )
Original file line number Diff line number Diff line change 1- #!/usr/bin/env cabal
1+ #!/usr/bin/env -S cabal run --verbose=1 --index-state=2023-10-04T00:00:00Z
22{- cabal:
33 build-depends:
44 base,
99 containers,
1010 foldl,
1111 github ^>= 0.28,
12- optparse-applicative,
12+ optparse-applicative ^>= 0.18,
13+ ansi-wl-pprint >= 1,
1314 pandoc ^>= 3.1,
1415 prettyprinter,
1516 req,
You can’t perform that action at this time.
0 commit comments