From b6b0c5204688e614c99af2f9c95587bba36bedae Mon Sep 17 00:00:00 2001
From: Gregor Kleen <gkleen@yggdrasil.li>
Date: Tue, 10 Apr 2018 15:23:16 +0200
Subject: bragi

---
 bragi/bar/default.nix | 15 ++++++++++++++-
 1 file changed, 14 insertions(+), 1 deletion(-)

(limited to 'bragi')

diff --git a/bragi/bar/default.nix b/bragi/bar/default.nix
index bbfa170c..2f80d777 100644
--- a/bragi/bar/default.nix
+++ b/bragi/bar/default.nix
@@ -1,7 +1,7 @@
 { haskellPackages
 , stdenv
 , fetchFromGitHub
-, jquery
+, fetchurl
 }:
 
 let
@@ -21,6 +21,19 @@ let
       cp -r $src/js-webshim/dev/* $out/js/
     '';
   };
+  jquery = stdenv.mkDerivation rec {
+    name = "jquery-${version}";
+    version = "3.3.1";
+    src = fetchurl {
+      url = "https://github.com/jquery/jquery/archive/${version}.tar.gz";
+      sha256 = "1d1pilrwiz0yjx27cd7gbn8qar6hw5zgwjhpsyaijcg52z82wi5q";
+    };
+
+    installPhase = ''
+      mkdir -p $out/js
+      cp -r $src/${name}/dist/jquery.js $out/js/
+    '';
+  };
 in stdenv.lib.overrideDerivation pkg (drv: {
   postUnpack = ''
     (
-- 
cgit v1.2.3