summaryrefslogtreecommitdiffstats
path: root/env.nix
blob: 2b6aae17531cca8f5521ac6a1682c454877b6829 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
let
  name = "cgroup-server";
  version = "1";
  buildInputs = with pkgs; [
    hsEnv
  ];
  extraCmds = with pkgs; ''
    export HISTFILE="\$HOME/.history/env-${name}"
    $(grep export ${hsEnv.outPath}/bin/ghc)
  '';
  pkgs = import <nixpkgs> {} // (with pkgs; {
  });
  hsEnv = pkgs
      .haskellPackages_ghc783_profiling
      .ghcWithPackages (hsPkgs: with hsPkgs;
    let
    in
      (callPackage ./. { devel = true; }).nativeBuildInputs ++ [
      cabalInstall
    ]);
in pkgs.myEnvFun {
  name = "${name}-${version}";
  inherit buildInputs extraCmds;
}
# vim: set fdm=marker :