blob: 9982e7b4282cbfbd72342318baaa6ea4954e30bf (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
|
# Tested on linux-x86_64. Might work on linux-i386. Probably won't work on anything else.
# To use this driver in NixOS, add it to printing.drivers in configuration.nix.
# configuration.nix might look like this when you're done:
# { pkgs, ... }: {
# printing = {
# enable = true;
# drivers = [ pkgs.samsungUnifiedLinuxDriver ];
# };
# (more stuff)
# }
# (This advice was tested on 2010 August 2.)
{ lib, stdenv, fetchurl, cups, gcc, ghostscript, glibc, patchelf }:
# Do not bump lightly! Visit <http://www.bchemnet.com/suldr/supported.html>
# to see what will break when upgrading. Consider a new versioned attribute.
let
cups' = stdenv.lib.getLib cups;
in stdenv.mkDerivation rec {
pname = "samsung-UnifiedLinuxDriver";
version = "4.00.39";
src = fetchurl {
url = "http://www.bchemnet.com/suldr/driver/UnifiedLinuxDriver-${version}.tar.gz";
sha256 = "144b4xggbzjfq7ga5nza7nra2cf6qn63z5ls7ba1jybkx1vm369k";
};
nativeBuildInputs = [ patchelf ];
buildInputs = [ cups' gcc ghostscript glibc ];
inherit gcc ghostscript glibc;
cups = cups';
builder = ./builder.sh;
meta = with lib; {
description = "Samsung's Linux printing drivers; includes binaries without source code";
homepage = "http://www.samsung.com/";
license = licenses.unfree;
platforms = platforms.linux;
broken = true; # libscmssc.so and libmfp.so can't find their library dependencies at run-time
};
}
|