Skip to content

Commit be25ebb

Browse files
committed
Merge remote-tracking branch 'upstream/master'
2 parents c11321d + 978b82a commit be25ebb

File tree

2 files changed

+15
-6
lines changed

2 files changed

+15
-6
lines changed

nix/set-git-rev.nix

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,19 @@
11
{ pkgs }:
22
drv:
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+
'')

scripts/generate-release-changelog-links.hs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
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,
@@ -9,7 +9,8 @@
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,

0 commit comments

Comments
 (0)