summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGregor Kleen <gkleen@yggdrasil.li>2016-06-22 01:53:35 +0200
committerGregor Kleen <gkleen@yggdrasil.li>2016-06-22 01:53:35 +0200
commitd68bf98d22de10b141698358f49b22376e6a0f3d (patch)
tree4a777663473d242132b32ee8ab2283ac15199549
parentc29e2202e1270c493b1c469e39d528abe7957365 (diff)
downloadnixos-d68bf98d22de10b141698358f49b22376e6a0f3d.tar
nixos-d68bf98d22de10b141698358f49b22376e6a0f3d.tar.gz
nixos-d68bf98d22de10b141698358f49b22376e6a0f3d.tar.bz2
nixos-d68bf98d22de10b141698358f49b22376e6a0f3d.tar.xz
nixos-d68bf98d22de10b141698358f49b22376e6a0f3d.zip
samsung patches
-rw-r--r--hel.nix11
1 files changed, 11 insertions, 0 deletions
diff --git a/hel.nix b/hel.nix
index fe09ab3b..6cdac8e1 100644
--- a/hel.nix
+++ b/hel.nix
@@ -56,6 +56,17 @@
56 modprobe -r wacom 56 modprobe -r wacom
57 modprobe wacom 57 modprobe wacom
58 ''; 58 '';
59
60 samsung-unified-linux-driver = pkgs.stdenv.lib.overrideDerivation pkgs.samsung-unified-linux-driver (oldAttrs: {
61 installPhase = ''
62 ${oldAttrs.installPhase}
63 my_patchelf \
64 --set-interpreter $(cat $NIX_CC/nix-support/dynamic-linker) \
65 --set-rpath ${cups}/lib:$(cat $NIX_CC/nix-support/orig-cc)/lib:${stdenv.glibc}/lib \
66 - ${arch}/{rastertosamsungspl,rastertosamsungsplc}
67 install -m755 ${arch}/{rastertosamsungspl,rastertosamsungsplc} $out/lib/cups/filter
68 '';
69 });
59 }; 70 };
60 71
61 # nixpkgs.config.packageOverrides = pkgs: rec { 72 # nixpkgs.config.packageOverrides = pkgs: rec {