mirror of
https://github.com/SebastianWendel/nixpkgs.git
synced 2024-09-21 04:49:01 +02:00
brlaser: cleanup and mark linux only (#46622)
The test binaries depend use open_memstream which isn't available on darwin. error: use of undeclared identifier 'open_memstream' /cc ZHF #45961
This commit is contained in:
parent
59be6689fa
commit
04cba83e7f
|
@ -1,7 +1,6 @@
|
||||||
{ stdenv, fetchFromGitHub, cmake, zlib, cups }:
|
{ stdenv, fetchFromGitHub, cmake, zlib, cups }:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
|
|
||||||
name = "brlaser-${version}";
|
name = "brlaser-${version}";
|
||||||
version = "4";
|
version = "4";
|
||||||
|
|
||||||
|
@ -12,11 +11,10 @@ stdenv.mkDerivation rec {
|
||||||
sha256 = "1yy4mpf68c82h245srh2sd1yip29w6kx14gxk4hxkv496gf55lw5";
|
sha256 = "1yy4mpf68c82h245srh2sd1yip29w6kx14gxk4hxkv496gf55lw5";
|
||||||
};
|
};
|
||||||
|
|
||||||
buildInputs = [ cmake zlib cups ];
|
nativeBuildInputs = [ cmake ];
|
||||||
|
buildInputs = [ zlib cups ];
|
||||||
|
|
||||||
preConfigure = ''
|
cmakeFlags = [ "-DCUPS_SERVER_BIN=$out/lib/cups" "-DCUPS_DATA_DIR=$out/share/cups" ];
|
||||||
cmakeFlags="$cmakeFlags -DCUPS_SERVER_BIN=$out/lib/cups/ -DCUPS_DATA_DIR=$out/share/cups/"
|
|
||||||
'';
|
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
description = "A CUPS driver for Brother laser printers";
|
description = "A CUPS driver for Brother laser printers";
|
||||||
|
@ -37,7 +35,7 @@ stdenv.mkDerivation rec {
|
||||||
'';
|
'';
|
||||||
homepage = https://github.com/pdewacht/brlaser;
|
homepage = https://github.com/pdewacht/brlaser;
|
||||||
license = licenses.gpl2;
|
license = licenses.gpl2;
|
||||||
platforms = platforms.unix;
|
platforms = platforms.linux;
|
||||||
maintainers = with maintainers; [ StijnDW ];
|
maintainers = with maintainers; [ StijnDW ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue