rf/rf.nix

25 lines
769 B
Nix
Raw Normal View History

2018-08-18 07:24:54 -04:00
let
2018-09-03 22:43:27 -04:00
rev = "d7c0d9a7f83b7f80e08888c040ea8a2ab7ca5f71";
np = builtins.fetchTarball {
2018-09-04 21:35:28 -04:00
url = "https://github.com/nixos/nixpkgs/archive/${rev}.tar.gz";
2018-09-03 22:43:27 -04:00
sha256 = "1i5a0si7m80w1a987crm9xmbin35jpmdcsk3113xxp9xcw0v23rn";
2018-09-03 22:20:35 -04:00
};
2018-09-03 21:32:43 -04:00
config = {
packageOverrides = pkgs: rec {
haskellPackages = pkgs.haskellPackages.override {
overrides = haskellPackagesNew: haskellPackagesOld: rec {
rf =
2018-12-12 21:22:16 -05:00
haskellPackagesNew.callPackage ./cabal.nix { };
2018-09-03 21:32:43 -04:00
};
};
};
};
2018-09-03 22:20:35 -04:00
pkgs = import np { inherit config; };
2018-08-18 07:24:54 -04:00
in
2018-09-03 21:32:43 -04:00
rec {
inherit pkgs;
rf = pkgs.haskellPackages.rf;
2018-12-12 21:22:16 -05:00
rfBuilt = pkgs.runCommand { buildInputs = [rf]; }
"mkdir $out; cd $out; touch TEST; site rebuild";
2018-09-03 21:32:43 -04:00
}