Merge pull request #173436 from lopsided98/btrfs-progs-python
btrfs-progs: install Python bindings
This commit is contained in:
commit
3f13f71406
2 changed files with 4 additions and 3 deletions
|
@ -23,9 +23,6 @@ stdenv.mkDerivation rec {
|
|||
|
||||
buildInputs = [ acl attr e2fsprogs libuuid lzo python3 zlib zstd ] ++ lib.optionals stdenv.hostPlatform.isGnu [ udev ];
|
||||
|
||||
# for python cross-compiling
|
||||
_PYTHON_HOST_PLATFORM = stdenv.hostPlatform.config;
|
||||
|
||||
# gcc bug with -O1 on ARM with gcc 4.8
|
||||
# This should be fine on all platforms so apply universally
|
||||
postPatch = "sed -i s/-O1/-O2/ configure";
|
||||
|
@ -38,6 +35,8 @@ stdenv.mkDerivation rec {
|
|||
|
||||
makeFlags = lib.optionals stdenv.hostPlatform.isGnu [ "udevruledir=$(out)/lib/udev/rules.d" ];
|
||||
|
||||
installFlags = [ "install_python" ];
|
||||
|
||||
enableParallelBuilding = true;
|
||||
|
||||
passthru.tests = {
|
||||
|
|
|
@ -1405,6 +1405,8 @@ in {
|
|||
|
||||
btrfs = callPackage ../development/python-modules/btrfs { };
|
||||
|
||||
btrfsutil = toPythonModule (pkgs.btrfs-progs.override { python3 = self.python; });
|
||||
|
||||
bugsnag = callPackage ../development/python-modules/bugsnag { };
|
||||
|
||||
bugwarrior = callPackage ../development/python-modules/bugwarrior { };
|
||||
|
|
Loading…
Reference in a new issue