about summary refs log tree commit diff
path: root/pkgs
diff options
context:
space:
mode:
authorJustin Humm <justin.humm@posteo.de>2018-12-21 14:08:30 +0100
committerJustin Humm <justin.humm@posteo.de>2018-12-21 14:12:02 +0100
commit0be7bfe1bf6430f07c1da4f8290f1e53997e505e (patch)
tree886ea0ccc032a26cda39721c9c4e9ada084761c1 /pkgs
parent195f8ac5ac62c7d11fe43bb077b91c184df931a5 (diff)
downloadnixlib-0be7bfe1bf6430f07c1da4f8290f1e53997e505e.tar
nixlib-0be7bfe1bf6430f07c1da4f8290f1e53997e505e.tar.gz
nixlib-0be7bfe1bf6430f07c1da4f8290f1e53997e505e.tar.bz2
nixlib-0be7bfe1bf6430f07c1da4f8290f1e53997e505e.tar.lz
nixlib-0be7bfe1bf6430f07c1da4f8290f1e53997e505e.tar.xz
nixlib-0be7bfe1bf6430f07c1da4f8290f1e53997e505e.tar.zst
nixlib-0be7bfe1bf6430f07c1da4f8290f1e53997e505e.zip
qutebrowser: fix pdfjs
Pdfjs was downloaded in two derivations, where one is sufficient.

Also there was allegedly a typo in the download URL.
Diffstat (limited to 'pkgs')
-rw-r--r--pkgs/applications/networking/browsers/qutebrowser/default.nix20
1 files changed, 7 insertions, 13 deletions
diff --git a/pkgs/applications/networking/browsers/qutebrowser/default.nix b/pkgs/applications/networking/browsers/qutebrowser/default.nix
index 8b7dfc860275..5e44bb8cbef6 100644
--- a/pkgs/applications/networking/browsers/qutebrowser/default.nix
+++ b/pkgs/applications/networking/browsers/qutebrowser/default.nix
@@ -10,20 +10,14 @@
 assert withMediaPlayback -> gst_all_1 != null;
 
 let
-  pdfjs = stdenv.mkDerivation rec {
-    name = "pdfjs-${version}";
+  pdfjs = let
     version = "1.10.100";
-
-    src = fetchzip {
-      url = "https://github.com/mozilla/pdf.js/releases/download/${version}/${name}-dist.zip";
-      sha256 = "04df4cf6i6chnggfjn6m1z9vb89f01a0l9fj5rk21yr9iirq9rkq";
-      stripRoot = false;
-    };
-
-    buildCommand = ''
-      mkdir $out
-      cp -r $src $out
-    '';
+  in
+  fetchzip rec {
+    name = "pdfjs-${version}";
+    url = "https://github.com/mozilla/pdf.js/releases/download/v${version}/${name}-dist.zip";
+    sha256 = "04df4cf6i6chnggfjn6m1z9vb89f01a0l9fj5rk21yr9iirq9rkq";
+    stripRoot = false;
   };
 
 in python3Packages.buildPythonApplication rec {