File tree Expand file tree Collapse file tree 3 files changed +36
-23
lines changed
Expand file tree Collapse file tree 3 files changed +36
-23
lines changed Original file line number Diff line number Diff line change 1- { nixpkgs ? import <nixpkgs> { } , compiler ? "ghc883" } :
2- nixpkgs . pkgs . haskell . packages . ${ compiler } . callPackage ./queue-sheet.nix { }
1+ let
2+
3+ nixpkgsRev = "cd63096d6d88" ;
4+ compilerVersion = "ghc884" ;
5+
6+ githubTarball = owner : repo : rev :
7+ builtins . fetchTarball { url = "https://github.com/${ owner } /${ repo } /archive/${ rev } .tar.gz" ; } ;
8+
9+ gitIgnore = pkgs . nix-gitignore . gitignoreSourcePure ;
10+
11+ config = {
12+ packageOverrides = super : let self = super . pkgs ; in rec {
13+ haskell = super . haskell // {
14+ packageOverrides = self : super : {
15+ haskell-nix = super . callCabal2nix "haskell-nix" ( gitIgnore [ ./.gitignore ] ./. ) { } ;
16+ } ;
17+ } ;
18+ } ;
19+ } ;
20+
21+ pkgs = import ( githubTarball "NixOS" "nixpkgs" nixpkgsRev ) { inherit config ; } ;
22+ compilerSet = pkgs . haskell . packages . "${ compilerVersion } " ;
23+
24+ in {
25+
26+ inherit pkgs ;
27+
28+ shell = compilerSet . shellFor {
29+ packages = p : [ p . haskell-nix ] ;
30+ buildInputs = with pkgs ; [
31+ compilerSet . cabal-install
32+ ] ;
33+ } ;
34+
35+ }
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1- { nixpkgs ? import <nixpkgs> { } , compiler ? "ghc883" } :
2- ( import ./default.nix { inherit nixpkgs compiler ; } ) . env
1+ ( import ./default.nix ) . shell
You can’t perform that action at this time.
0 commit comments