diff options
author | tv <tv@krebsco.de> | 2017-04-11 20:46:44 +0200 |
---|---|---|
committer | tv <tv@krebsco.de> | 2017-04-11 20:46:44 +0200 |
commit | e6d8b646d243a7110a8c58bcc0dd90a713472419 (patch) | |
tree | bcbe96dc23a27f75c9347abda35ac1caef580806 /shell.nix |
initial commit
Diffstat (limited to 'shell.nix')
-rw-r--r-- | shell.nix | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/shell.nix b/shell.nix new file mode 100644 index 0000000..1e27f23 --- /dev/null +++ b/shell.nix @@ -0,0 +1,34 @@ + +let + pname = "news"; + version = "1"; + + pkgs = nixpkgs // extrapkgs; + nixpkgs = import <nixpkgs> {}; + extrapkgs = { + }; + hsPkgs = pkgs.haskellPackages; + hsEnv = hsPkgs.ghcWithPackages (_hsPkgs: with _hsPkgs; + [ + irc + irc-client + feed + split + warp + wai-util + ]); +in + +pkgs.myEnvFun { + name = "${pname}-${version}"; + + buildInputs = with pkgs; [ + hsEnv + ]; + + extraCmds = with pkgs; '' + $(grep export ${hsEnv.outPath}/bin/ghc) + ''; +} + +# vim: set fdm=marker : |