mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-15 02:36:16 +02:00
fix Windows build
This commit is contained in:
parent
976f539f7d
commit
459d02672c
1 changed files with 12 additions and 7 deletions
|
@ -116,20 +116,25 @@ scope: {
|
||||||
cmakeFlags = attrs.cmakeFlags or []
|
cmakeFlags = attrs.cmakeFlags or []
|
||||||
++ [ "-DUSE_SSH=exec" ];
|
++ [ "-DUSE_SSH=exec" ];
|
||||||
nativeBuildInputs = attrs.nativeBuildInputs or []
|
nativeBuildInputs = attrs.nativeBuildInputs or []
|
||||||
++ [
|
# gitMinimal does not build on Windows. See packbuilder patch.
|
||||||
|
++ lib.optionals (!stdenv.hostPlatform.isWindows) [
|
||||||
# Needed for `git apply`; see `prePatch`
|
# Needed for `git apply`; see `prePatch`
|
||||||
pkgs.buildPackages.gitMinimal
|
pkgs.buildPackages.gitMinimal
|
||||||
];
|
];
|
||||||
# Only `git apply` can handle git binary patches
|
# Only `git apply` can handle git binary patches
|
||||||
prePatch = ''
|
prePatch = attrs.prePatch or ""
|
||||||
patch() {
|
+ lib.optionalString (!stdenv.hostPlatform.isWindows) ''
|
||||||
git apply
|
patch() {
|
||||||
}
|
git apply
|
||||||
'';
|
}
|
||||||
|
'';
|
||||||
patches = attrs.patches or []
|
patches = attrs.patches or []
|
||||||
++ [
|
++ [
|
||||||
./patches/libgit2-mempack-thin-packfile.patch
|
./patches/libgit2-mempack-thin-packfile.patch
|
||||||
|
]
|
||||||
|
# gitMinimal does not build on Windows, but fortunately this patch only
|
||||||
|
# impacts interruptibility
|
||||||
|
++ lib.optionals (!stdenv.hostPlatform.isWindows) [
|
||||||
# binary patch; see `prePatch`
|
# binary patch; see `prePatch`
|
||||||
./patches/libgit2-packbuilder-callback-interruptible.patch
|
./patches/libgit2-packbuilder-callback-interruptible.patch
|
||||||
];
|
];
|
||||||
|
|
Loading…
Reference in a new issue