From d84b462a711ce95593ff05a7581e722562c3835a Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Tue, 14 Mar 2017 01:06:28 +0100 Subject: Implement old bar.hs --- default.nix | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 default.nix (limited to 'default.nix') diff --git a/default.nix b/default.nix new file mode 100644 index 0000000..1e631cf --- /dev/null +++ b/default.nix @@ -0,0 +1,29 @@ +argumentPackages@{ ... }: + +let + defaultPackages = (import {}).haskellPackages; + haskellPackages = defaultPackages // argumentPackages; + pkgs = (import {}).pkgs // argumentPackages; + + webshim = with pkgs; stdenv.mkDerivation rec { + name = "webshim-${version}"; + version = "1.16.0"; + src = fetchFromGitHub { + owner = "aFarkas"; + repo = "webshim"; + rev = "1.16.0"; + sha256 = "14pk7hljqipzp0n7vpgcfxr3w4bla57cwyd7bmwmmxrm2zn62cyh"; + }; + + installPhase = '' + mkdir -p $out/js + cp -r $src/js-webshim/dev/* $out/js/ + ''; + }; +in pkgs.stdenv.lib.overrideDerivation (haskellPackages.callPackage ./bar.nix {}) (oldAttrs: { + postUnpack = '' + rm -rf bar/static/jquery.js bar/static/webshim + ln -vs ${pkgs.jquery}/js/jquery.js bar/static + ln -vs ${webshim}/js bar/static/webshim + ''; +}) -- cgit v1.2.3