Skip to content

Commit

Permalink
brlaser: cleanup and mark linux only (#46622)
Browse files Browse the repository at this point in the history
The test binaries depend use open_memstream which isn't available on
darwin.

    error: use of undeclared identifier 'open_memstream'

/cc ZHF #45961

(cherry picked from commit 04cba83)
  • Loading branch information
LnL7 authored and xeji committed Sep 13, 2018
1 parent 4293f9f commit 381c09b
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions pkgs/misc/cups/drivers/brlaser/default.nix
@@ -1,7 +1,6 @@
{ stdenv, fetchFromGitHub, cmake, zlib, cups }:

stdenv.mkDerivation rec {

name = "brlaser-${version}";
version = "4";

Expand All @@ -12,11 +11,10 @@ stdenv.mkDerivation rec {
sha256 = "1yy4mpf68c82h245srh2sd1yip29w6kx14gxk4hxkv496gf55lw5";
};

buildInputs = [ cmake zlib cups ];
nativeBuildInputs = [ cmake ];
buildInputs = [ zlib cups ];

preConfigure = ''
cmakeFlags="$cmakeFlags -DCUPS_SERVER_BIN=$out/lib/cups/ -DCUPS_DATA_DIR=$out/share/cups/"
'';
cmakeFlags = [ "-DCUPS_SERVER_BIN=$out/lib/cups" "-DCUPS_DATA_DIR=$out/share/cups" ];

meta = with stdenv.lib; {
description = "A CUPS driver for Brother laser printers";
Expand All @@ -37,7 +35,7 @@ stdenv.mkDerivation rec {
'';
homepage = https://github.com/pdewacht/brlaser;
license = licenses.gpl2;
platforms = platforms.unix;
platforms = platforms.linux;
maintainers = with maintainers; [ StijnDW ];
};
}

0 comments on commit 381c09b

Please sign in to comment.