e2fsprogs: allow static build
This commit is contained in:
parent
62d0993e87
commit
f6ea33023e
@ -1,4 +1,4 @@
|
|||||||
{ stdenv, buildPackages, fetchurl, fetchpatch, pkgconfig, libuuid, gettext, texinfo }:
|
{ stdenv, buildPackages, fetchurl, fetchpatch, pkgconfig, libuuid, gettext, texinfo, shared ? true }:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = "e2fsprogs";
|
pname = "e2fsprogs";
|
||||||
@ -36,7 +36,9 @@ stdenv.mkDerivation rec {
|
|||||||
|
|
||||||
configureFlags =
|
configureFlags =
|
||||||
if stdenv.isLinux then [
|
if stdenv.isLinux then [
|
||||||
"--enable-elf-shlibs"
|
# It seems that the e2fsprogs is one of the few packages that cannot be
|
||||||
|
# build with shared and static libs.
|
||||||
|
(if shared then "--enable-elf-shlibs" else "--disable-elf-shlibs")
|
||||||
"--enable-symlink-install"
|
"--enable-symlink-install"
|
||||||
"--enable-relative-symlinks"
|
"--enable-relative-symlinks"
|
||||||
"--with-crond-dir=no"
|
"--with-crond-dir=no"
|
||||||
|
@ -82,14 +82,15 @@ in {
|
|||||||
} // optionalAttrs super.stdenv.hostPlatform.isDarwin {
|
} // optionalAttrs super.stdenv.hostPlatform.isDarwin {
|
||||||
pythonSupport = false;
|
pythonSupport = false;
|
||||||
});
|
});
|
||||||
zlib = (super.zlib.override {
|
zlib = super.zlib.override {
|
||||||
static = true;
|
static = true;
|
||||||
shared = false;
|
shared = false;
|
||||||
|
splitStaticOutput = false;
|
||||||
|
|
||||||
# Don’t use new stdenv zlib because
|
# Don’t use new stdenv zlib because
|
||||||
# it doesn’t like the --disable-shared flag
|
# it doesn’t like the --disable-shared flag
|
||||||
stdenv = super.stdenv;
|
stdenv = super.stdenv;
|
||||||
}).static;
|
};
|
||||||
xz = super.xz.override {
|
xz = super.xz.override {
|
||||||
enableStatic = true;
|
enableStatic = true;
|
||||||
};
|
};
|
||||||
@ -177,6 +178,10 @@ in {
|
|||||||
gssSupport = false;
|
gssSupport = false;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
e2fsprogs = super.e2fsprogs.override {
|
||||||
|
shared = false;
|
||||||
|
};
|
||||||
|
|
||||||
brotli = super.brotli.override {
|
brotli = super.brotli.override {
|
||||||
staticOnly = true;
|
staticOnly = true;
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user