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 ''; })