From 69099448273767bd7c70c48f4dccec034c445aa9 Mon Sep 17 00:00:00 2001 From: Michael Raskin <7c6f434c@mail.ru> Date: Sat, 18 Oct 2014 00:13:26 +0400 Subject: Remove failing steps from pipelight build --- pkgs/tools/misc/pipelight/default.nix | 4 +- pkgs/tools/misc/pipelight/pipelight-fixup.patch | 54 ------------------------- 2 files changed, 1 insertion(+), 57 deletions(-) delete mode 100644 pkgs/tools/misc/pipelight/pipelight-fixup.patch (limited to 'pkgs/tools/misc') diff --git a/pkgs/tools/misc/pipelight/default.nix b/pkgs/tools/misc/pipelight/default.nix index ea1ba37a2edd..004865080e62 100644 --- a/pkgs/tools/misc/pipelight/default.nix +++ b/pkgs/tools/misc/pipelight/default.nix @@ -41,7 +41,6 @@ let mozillaPluginPath = "/lib/mozilla/plugins"; - fixupPatch = ./pipelight-fixup.patch; in stdenv.mkDerivation rec { @@ -60,6 +59,7 @@ in stdenv.mkDerivation rec { patches = [ ./pipelight.patch ]; configurePhase = '' + patchShebangs . ./configure \ --prefix=$out \ --moz-plugin-path=$out/${mozillaPluginPath} \ @@ -76,12 +76,10 @@ in stdenv.mkDerivation rec { }; postInstall = '' - $out/bin/pipelight-plugin --update $out/bin/pipelight-plugin --create-mozilla-plugins ''; preFixup = '' - patch -d $out -p1 <${fixupPatch} substituteInPlace $out/share/pipelight/install-dependency \ --replace cabextract ${cabextract}/bin/cabextract ''; diff --git a/pkgs/tools/misc/pipelight/pipelight-fixup.patch b/pkgs/tools/misc/pipelight/pipelight-fixup.patch deleted file mode 100644 index 8033e8458d08..000000000000 --- a/pkgs/tools/misc/pipelight/pipelight-fixup.patch +++ /dev/null @@ -1,54 +0,0 @@ -diff -urN pipelight2.old/share/pipelight/install-dependency pipelight2.new/share/pipelight/install-dependency ---- pipelight2.old/share/pipelight/install-dependency 2014-07-27 01:38:39.806379602 +0200 -+++ pipelight2.new/share/pipelight/install-dependency 2014-07-27 01:40:08.689861556 +0200 -@@ -734,42 +734,14 @@ - return 0 - } - --# Use fetch on FreeBSD if wget is not available --if command -v wget >/dev/null 2>&1; then -- download_file() -- { -- wget -O "$1" "$2" -- } -- get_download_size() -- { -- local filesize="$(wget -O- "$1" --spider --server-response 2>&1 | sed -ne '/Content-Length/{s/.*: //;p}')" -- local re='^[0-9]+$' -- if [[ "$filesize" -ne "0" ]] && [[ "$filesize" =~ $re ]]; then -- echo "$(($filesize/(1024*1024)))" -- else -- echo "N/A" -- fi -- } --elif command -v fetch >/dev/null 2>&1; then -- download_file() -- { -- fetch -o "$1" "$2" -- } -- get_download_size() -- { -- echo "N/A" -- } --else -- download_file() -- { -- echo "ERROR: Could neither find wget nor fetch. Unable to download file!" >&2 -- return 1 -- } -- get_download_size() -- { -- echo "N/A" -- } --fi -+download_file() -+{ -+ curl --cacert /etc/ssl/certs/ca-bundle.crt -o "$1" "$2" -+} -+get_download_size() -+{ -+ echo "N/A" -+} - - # Use shasum instead of sha256sum on MacOS / *BSD - if ! command -v sha256sum >/dev/null 2>&1 && command -v shasum >/dev/null 2>&1; then -- cgit 1.4.1