Skip to content

Commit

Permalink
Merge remote-tracking branch 'upstream/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
NanuIjaz committed Nov 16, 2023
2 parents c11321d + 978b82a commit be25ebb
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 6 deletions.
16 changes: 12 additions & 4 deletions nix/set-git-rev.nix
Original file line number Diff line number Diff line change
@@ -1,11 +1,19 @@
{ pkgs }:
drv:
pkgs.buildPackages.runCommand drv.name
with pkgs;
buildPackages.runCommand drv.name
{
inherit (drv) exeName exePath meta passthru;
} ''
# this is to ensure we are re-signing macOS binaries that might have been
# mutilated by set-git-rev (e.g. patching in the git revision.)
nativeBuildInputs = lib.optionals hostPlatform.isDarwin [ darwin.signingUtils ];
} (''
mkdir -p $out
cp --no-preserve=timestamps --recursive ${drv}/* $out/
chmod -R +w $out/bin
${pkgs.pkgsBuildBuild.haskellBuildUtils}/bin/set-git-rev "${pkgs.gitrev}" $out/bin/*
''
${pkgsBuildBuild.haskellBuildUtils}/bin/set-git-rev "${gitrev}" $out/bin/*
'' + lib.optionalString hostPlatform.isDarwin ''
for exe in $out/bin/*; do
signIfRequired "$exe"
done
'')
5 changes: 3 additions & 2 deletions scripts/generate-release-changelog-links.hs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env cabal
#!/usr/bin/env -S cabal run --verbose=1 --index-state=2023-10-04T00:00:00Z
{- cabal:
build-depends:
base,
Expand All @@ -9,7 +9,8 @@
containers,
foldl,
github ^>= 0.28,
optparse-applicative,
optparse-applicative ^>= 0.18,
ansi-wl-pprint >= 1,
pandoc ^>= 3.1,
prettyprinter,
req,
Expand Down

0 comments on commit be25ebb

Please sign in to comment.