default.nix 452 Bytes
Newer Older
Valentin Reis's avatar
Valentin Reis committed
1
{
Valentin Reis's avatar
Valentin Reis committed
2
  pkgs ? import <argopkgs> {},
Valentin Reis's avatar
Valentin Reis committed
3
}:
4
rec {
Valentin Reis's avatar
Valentin Reis committed
5
  argotk = pkgs.argotk.overrideAttrs (old:{
6 7
    src = ./.;
  });
Valentin Reis's avatar
Valentin Reis committed
8

Valentin Reis's avatar
Valentin Reis committed
9
  hack = pkgs.argolib.getHackEnv pkgs pkgs.haskellPackages argotk;
Valentin Reis's avatar
Valentin Reis committed
10

Valentin Reis's avatar
Valentin Reis committed
11
  shakeEnv = pkgs.stdenv.mkDerivation {
Valentin Reis's avatar
Valentin Reis committed
12
    name = "shake";
Valentin Reis's avatar
Valentin Reis committed
13
    ARGOTK_SHARE = "${argotk}/share";
Valentin Reis's avatar
Valentin Reis committed
14
    buildInputs = [
Valentin Reis's avatar
Valentin Reis committed
15
      (pkgs.haskellPackages.ghcWithPackages (p: with p; [
Valentin Reis's avatar
Valentin Reis committed
16
          argotk
Valentin Reis's avatar
Valentin Reis committed
17
          pkgs.hwloc
Valentin Reis's avatar
Valentin Reis committed
18
          shake
19
          panpipe
Valentin Reis's avatar
Valentin Reis committed
20 21
        ]))
      ];
Valentin Reis's avatar
Valentin Reis committed
22 23
  };
}