-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathshell.nix
More file actions
26 lines (19 loc) · 805 Bytes
/
shell.nix
File metadata and controls
26 lines (19 loc) · 805 Bytes
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
{ nixpkgs ? import <nixpkgs> {}, compiler ? "default" }:
let
inherit (nixpkgs) pkgs;
f = { mkDerivation, base, containers, mtl, stdenv, semigroups, text, cabal-install }:
mkDerivation {
pname = "reform";
version = "0.2.7.1";
src = ./.;
libraryHaskellDepends = [ base containers mtl semigroups text cabal-install ];
homepage = "http://www.happstack.com/";
description = "reform is a type-safe HTML form generation and validation library";
license = stdenv.lib.licenses.bsd3;
};
haskellPackages = if compiler == "default"
then pkgs.haskellPackages
else pkgs.haskell.packages.${compiler};
drv = haskellPackages.callPackage f {};
in
if pkgs.lib.inNixShell then drv.env else drv