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

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

11
  preCommit = argopkgs.mkShell {
Valentin Reis's avatar
Valentin Reis committed
12
13
    name = "shake";
    buildInputs = [
14
      (argopkgs.haskellPackages.ghcWithPackages (p: with p; [
Valentin Reis's avatar
Valentin Reis committed
15
          argotk
Valentin Reis's avatar
hwolc    
Valentin Reis committed
16
          pkgs.hwloc
Valentin Reis's avatar
Valentin Reis committed
17
          shake
18
          panpipe
Valentin Reis's avatar
Valentin Reis committed
19
20
        ]))
      ];
Valentin Reis's avatar
Valentin Reis committed
21
22
  };
}