From 10f7e74df052385dfa8eca54dbbbfc20d5c0be64 Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Wed, 22 Jun 2016 02:43:30 +0200 Subject: =?UTF-8?q?=E2=80=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hel.nix | 17 +---------------- 1 file changed, 1 insertion(+), 16 deletions(-) diff --git a/hel.nix b/hel.nix index f024d829..9b6372ac 100644 --- a/hel.nix +++ b/hel.nix @@ -58,22 +58,7 @@ ''; samsung-unified-linux-driver = pkgs.stdenv.lib.overrideDerivation pkgs.samsung-unified-linux-driver (oldAttrs: { - postInstall = '' - my_patchelf() { - opts=(); while [[ "$1" != - ]]; do opts+=( "$1" ); shift; done; shift - for binary in "$@"; do - echo "Patching ELF file: $binary" - patchelf "''${opts[@]}" $binary - ldd $binary | grep "not found" && exit 1 - done; true - } - - my_patchelf \ - --set-interpreter $(cat $NIX_CC/nix-support/dynamic-linker) \ - --set-rpath ${pkgs.cups}/lib:$(cat $NIX_CC/nix-support/orig-cc)/lib:${pkgs.stdenv.glibc}/lib \ - - ${if pkgs.stdenv.system == "x86_64-linux" then "x86_64" else "i386"}/{rastertosamsungspl,rastertosamsungsplc} - install -m755 ${if pkgs.stdenv.system == "x86_64-linux" then "x86_64" else "i386"}/{rastertosamsungspl,rastertosamsungsplc} $out/lib/cups/filter - ''; + buildInputs = with pkgs; [cups]; }); }; -- cgit v1.2.3