Skip to content

Commit 48c05d2

Browse files
committed
Rename and update shell.nix
1 parent 0faa16b commit 48c05d2

File tree

2 files changed

+38
-25
lines changed

2 files changed

+38
-25
lines changed

default.nix

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
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+
}

shell.nix

Lines changed: 0 additions & 25 deletions
This file was deleted.

0 commit comments

Comments
 (0)