mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-16 09:54:52 +00:00
gimpPlugins.{bimp,gap}: fix build (#362644)
This commit is contained in:
commit
5d94651752
@ -90,8 +90,17 @@ in
|
||||
})
|
||||
];
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace Makefile \
|
||||
--replace-fail "gcc" "${stdenv.cc.targetPrefix}cc"
|
||||
'';
|
||||
|
||||
nativeBuildInputs = with pkgs; [ which ];
|
||||
|
||||
env.NIX_CFLAGS_COMPILE = toString (lib.optionals stdenv.cc.isClang [
|
||||
"-Wno-error=incompatible-function-pointer-types"
|
||||
]);
|
||||
|
||||
installFlags = [
|
||||
"SYSTEM_INSTALL_DIR=${placeholder "out"}/${gimp.targetPluginDir}/bimp"
|
||||
];
|
||||
@ -138,7 +147,11 @@ in
|
||||
ffmpegSrc=$(realpath extern_libs/ffmpeg)
|
||||
'';
|
||||
|
||||
configureFlags = ["--with-ffmpegsrcdir=${placeholder "ffmpegSrc"}"];
|
||||
configureFlags = [
|
||||
"--with-ffmpegsrcdir=${placeholder "ffmpegSrc"}"
|
||||
] ++ lib.optionals (!stdenv.hostPlatform.isx86) [
|
||||
"--disable-libavformat"
|
||||
];
|
||||
|
||||
hardeningDisable = [ "format" ];
|
||||
|
||||
@ -152,6 +165,8 @@ in
|
||||
# The main code is given in GPLv3, but it has ffmpeg in it, and I think ffmpeg license
|
||||
# falls inside "free".
|
||||
license = with licenses; [ gpl3 free ];
|
||||
# Depends on linux/soundcard.h
|
||||
platforms = platforms.linux;
|
||||
};
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user