File tree Expand file tree Collapse file tree 2 files changed +38
-25
lines changed Expand file tree Collapse file tree 2 files changed +38
-25
lines changed Original file line number Diff line number Diff line change
1
+ { nixpkgs ? import <nixpkgs> { }
2
+ , compiler ? "ghc802"
3
+ } :
4
+
5
+ let
6
+ inherit ( nixpkgs ) pkgs ;
7
+
8
+ haskellPackages = pkgs . haskell . packages . "${ compiler } " ;
9
+ ghc = haskellPackages . ghcWithPackages ( ps : with ps ; [
10
+ idris
11
+ pandoc
12
+ ] ) ;
13
+ # FIXME: TeX Live is pretty much broken in Nix right now.
14
+ # xelatex = pkgs.texlive.combine {
15
+ # inherit (pkgs.texlive) scheme-small xetex latexmk todonotes;
16
+ # };
17
+ in
18
+
19
+ pkgs . stdenv . mkDerivation rec {
20
+ name = "software-foundations-${ version } -env" ;
21
+ version = "0.0.1.0" ;
22
+
23
+ src = ./. ;
24
+
25
+ # TODO: xelatex
26
+ buildInputs = [ ghc ] ++
27
+ ( with pkgs ; [ python3 ] ) ++
28
+ ( with pkgs . python35Packages ; [ pygments ] ) ;
29
+
30
+ meta = with pkgs . stdenv . lib ; {
31
+ description = "Software Foundations in Idris" ;
32
+ # TODO: longDescription
33
+ homepage = http://idris-hackers.github.io/software-foundations ;
34
+ # TODO: license
35
+ maintainers = with maintainers ; [ yurrriq ] ;
36
+ inherit ( ghc . meta ) platforms ;
37
+ } ;
38
+ }
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments