Merge pull request #285875 from seanybaggins/add-mingw32-support-lzip
lzip: add mingw support
This commit is contained in:
commit
a04e60d617
@ -15,6 +15,10 @@ stdenv.mkDerivation rec {
|
||||
sha256 = "sha256-R5LAR93xXvKdVbqOaKGiHgy3aS2H7N9yBEGYZFgvKA0=";
|
||||
};
|
||||
|
||||
patches = lib.optionals stdenv.hostPlatform.isMinGW [
|
||||
./mingw-install-exe-file.patch
|
||||
];
|
||||
|
||||
configureFlags = [
|
||||
"CPPFLAGS=-DNDEBUG"
|
||||
"CFLAGS=-O3"
|
||||
|
13
pkgs/tools/compression/lzip/mingw-install-exe-file.patch
Normal file
13
pkgs/tools/compression/lzip/mingw-install-exe-file.patch
Normal file
@ -0,0 +1,13 @@
|
||||
diff --git a/Makefile.in b/Makefile.in
|
||||
index d07ad5a..1c15203 100644
|
||||
--- a/Makefile.in
|
||||
+++ b/Makefile.in
|
||||
@@ -64,7 +64,7 @@ install-strip-compress : install-bin-strip install-info-compress install-man-com
|
||||
|
||||
install-bin : all
|
||||
if [ ! -d "$(DESTDIR)$(bindir)" ] ; then $(INSTALL_DIR) "$(DESTDIR)$(bindir)" ; fi
|
||||
- $(INSTALL_PROGRAM) ./$(progname) "$(DESTDIR)$(bindir)/$(progname)"
|
||||
+ $(INSTALL_PROGRAM) ./$(progname).exe "$(DESTDIR)$(bindir)/$(progname).exe"
|
||||
|
||||
install-bin-strip : all
|
||||
$(MAKE) INSTALL_PROGRAM='$(INSTALL_PROGRAM) -s' install-bin
|
Loading…
Reference in New Issue
Block a user