forked from mirrors/nixpkgs
curtail: dont propagate unnecessary packages
pygobject3 has to be propagated for the import line in the python file in bin $ ./result/bin/curtail Traceback (most recent call last): File "/nix/store/fqjld9nchfwqd9x1pywmjfdsqrk4lxds-curtail-1.3.1/bin/.curtail-wrapped", line 37, in <module> import gi ModuleNotFoundError: No module named 'gi'
This commit is contained in:
parent
7242c23f12
commit
ab3ba31f1c
|
@ -40,19 +40,27 @@ python3.pkgs.buildPythonApplication rec {
|
|||
gobject-introspection
|
||||
];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
buildInputs = [
|
||||
appstream-glib
|
||||
python3.pkgs.pygobject3
|
||||
gettext
|
||||
gtk3
|
||||
];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
python3.pkgs.pygobject3
|
||||
];
|
||||
|
||||
preInstall = ''
|
||||
patchShebangs ../build-aux/meson/postinstall.py
|
||||
'';
|
||||
|
||||
postInstall = ''
|
||||
wrapProgram $out/bin/curtail --prefix PATH : ${lib.makeBinPath [ jpegoptim libwebp optipng pngquant ]}
|
||||
dontWrapGApps = true;
|
||||
|
||||
preFixup = ''
|
||||
makeWrapperArgs+=(
|
||||
"''${gappsWrapperArgs[@]}"
|
||||
"--prefix" "PATH" ":" "${lib.makeBinPath [ jpegoptim libwebp optipng pngquant ]}"
|
||||
)
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
|
|
Loading…
Reference in a new issue