@@ -1,20 +1,15 @@
1−{ pkgs ? (import <nixpkgs> {}).pkgs }:
1+{ pkgs ? import <nixpkgs> { }
2+}:
23
34let
4− # List any extra packages you want available while your package is
5− # building or while in a nix shell:
6− extraPackages = with pkgs; [ ];
5+ nix-hs-src = fetchGit {
6+ url = "https://code.devalot.com/open/nix-hs.git";
7+ rev = "2003332a1e8e518b54e6143f9a9467a8a05abca4";
8+ };
79
8− # Helpful if you want to override any Haskell packages:
9− haskell = pkgs.haskellPackages;
10−in
10+ nix-hs = import "${nix-hs-src}/default.nix" { inherit pkgs; };
1111
12−# Load the local nix file and use the overrides from above:
13−haskell.callPackage ./cassava-streams.nix {
14− mkDerivation = { buildTools ? []
15− , ...
16− }@args:
17− haskell.mkDerivation (args // {
18− buildTools = buildTools ++ extraPackages;
19− });
12+in nix-hs {
13+ cabal = ./cassava-streams.cabal;
14+ flags = [ "tutorial" ];
2015}