mirror of
https://github.com/vale981/poetry2nix
synced 2025-03-05 09:11:39 -05:00
Merge pull request #481 from nix-community/pantalaimon-overrides
Add overrides to build pantalaimon
This commit is contained in:
commit
baf5802b21
1 changed files with 36 additions and 0 deletions
|
@ -247,6 +247,36 @@ self: super:
|
|||
buildInputs = (old.buildInputs or [ ]) ++ [ self.setuptools ];
|
||||
});
|
||||
|
||||
dbus-python = super.dbus-python.overridePythonAttrs (old: {
|
||||
outputs = [ "out" "dev" ];
|
||||
|
||||
postPatch = old.postPatch or "" + ''
|
||||
substituteInPlace ./configure --replace /usr/bin/file ${pkgs.file}/bin/file
|
||||
substituteInPlace ./dbus-python.pc.in --replace 'Cflags: -I''${includedir}' 'Cflags: -I''${includedir}/dbus-1.0'
|
||||
'';
|
||||
|
||||
configureFlags = (old.configureFlags or [ ]) ++ [
|
||||
"PYTHON_VERSION=${lib.versions.major self.python.version}"
|
||||
];
|
||||
|
||||
preConfigure = lib.concatStringsSep "\n" [
|
||||
(old.preConfigure or "")
|
||||
(if (lib.versionAtLeast stdenv.hostPlatform.darwinMinVersion "11" && stdenv.isDarwin) then ''
|
||||
MACOSX_DEPLOYMENT_TARGET=10.16
|
||||
'' else "")
|
||||
];
|
||||
|
||||
preBuild = old.preBuild or "" + ''
|
||||
make distclean
|
||||
'';
|
||||
|
||||
nativeBuildInputs = old.nativeBuildInputs or [ ] ++ [ pkgs.pkg-config ];
|
||||
buildInputs = old.buildInputs or [ ] ++ [ pkgs.dbus pkgs.dbus-glib ]
|
||||
# My guess why it's sometimes trying to -lncurses.
|
||||
# It seems not to retain the dependency anyway.
|
||||
++ lib.optional (! self.python ? modules) pkgs.ncurses;
|
||||
});
|
||||
|
||||
dcli = super.dcli.overridePythonAttrs (old: {
|
||||
propagatedBuildInputs = (old.propagatedBuildInputs or [ ]) ++ [ self.setuptools ];
|
||||
});
|
||||
|
@ -1479,6 +1509,12 @@ self: super:
|
|||
}
|
||||
);
|
||||
|
||||
python-olm = super.python-olm.overridePythonAttrs (
|
||||
old: {
|
||||
buildInputs = old.buildInputs or [ ] ++ [ pkgs.olm ];
|
||||
}
|
||||
);
|
||||
|
||||
python-snappy = super.python-snappy.overridePythonAttrs (
|
||||
old: {
|
||||
buildInputs = (old.buildInputs or [ ]) ++ [ pkgs.snappy ];
|
||||
|
|
Loading…
Add table
Reference in a new issue