From d68bf98d22de10b141698358f49b22376e6a0f3d Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Wed, 22 Jun 2016 01:53:35 +0200 Subject: samsung patches --- hel.nix | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/hel.nix b/hel.nix index fe09ab3b..6cdac8e1 100644 --- a/hel.nix +++ b/hel.nix @@ -56,6 +56,17 @@ modprobe -r wacom modprobe wacom ''; + + samsung-unified-linux-driver = pkgs.stdenv.lib.overrideDerivation pkgs.samsung-unified-linux-driver (oldAttrs: { + installPhase = '' + ${oldAttrs.installPhase} + my_patchelf \ + --set-interpreter $(cat $NIX_CC/nix-support/dynamic-linker) \ + --set-rpath ${cups}/lib:$(cat $NIX_CC/nix-support/orig-cc)/lib:${stdenv.glibc}/lib \ + - ${arch}/{rastertosamsungspl,rastertosamsungsplc} + install -m755 ${arch}/{rastertosamsungspl,rastertosamsungsplc} $out/lib/cups/filter + ''; + }); }; # nixpkgs.config.packageOverrides = pkgs: rec { -- cgit v1.2.3