openh264: fix compilation for windows
This commit is contained in:
parent
3cd7ed9ca9
commit
cedddfb41f
@ -1,4 +1,4 @@
|
|||||||
{ lib, stdenv, fetchFromGitHub, nasm }:
|
{ lib, stdenv, fetchFromGitHub, nasm, windows }:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = "openh264";
|
pname = "openh264";
|
||||||
@ -13,10 +13,16 @@ stdenv.mkDerivation rec {
|
|||||||
|
|
||||||
nativeBuildInputs = [ nasm ];
|
nativeBuildInputs = [ nasm ];
|
||||||
|
|
||||||
|
buildInputs = lib.optional stdenv.hostPlatform.isWindows windows.pthreads;
|
||||||
|
|
||||||
makeFlags = [
|
makeFlags = [
|
||||||
"PREFIX=${placeholder "out"}"
|
"PREFIX=${placeholder "out"}"
|
||||||
"ARCH=${stdenv.hostPlatform.linuxArch}"
|
"ARCH=${stdenv.hostPlatform.linuxArch}"
|
||||||
];
|
] ++ lib.optional stdenv.hostPlatform.isWindows "OS=mingw_nt";
|
||||||
|
|
||||||
|
enableParallelBuilding = true;
|
||||||
|
|
||||||
|
hardeningDisable = lib.optional stdenv.hostPlatform.isWindows "stackprotector";
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "A codec library which supports H.264 encoding and decoding";
|
description = "A codec library which supports H.264 encoding and decoding";
|
||||||
|
Loading…
Reference in New Issue
Block a user