forked from idris-hackers/software-foundations
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdefault.nix
38 lines (32 loc) · 937 Bytes
/
default.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
{ nixpkgs ? import <nixpkgs> {}
, compiler ? "ghc802"
}:
let
inherit (nixpkgs) pkgs;
haskellPackages = pkgs.haskell.packages."${compiler}";
ghc = haskellPackages.ghcWithPackages (ps: with ps; [
idris
pandoc
]);
# FIXME: TeX Live is pretty much broken in Nix right now.
# xelatex = pkgs.texlive.combine {
# inherit (pkgs.texlive) scheme-small xetex latexmk todonotes;
# };
in
pkgs.stdenv.mkDerivation rec {
name = "software-foundations-${version}-env";
version = "0.0.1.0";
src = ./.;
# TODO: xelatex
buildInputs = [ ghc ] ++
(with pkgs; [ python3 ]) ++
(with pkgs.python35Packages; [ pygments ]);
meta = with pkgs.stdenv.lib; {
description = "Software Foundations in Idris";
# TODO: longDescription
homepage = http://idris-hackers.github.io/software-foundations;
# TODO: license
maintainers = with maintainers; [ yurrriq ];
inherit (ghc.meta) platforms;
};
}