diff options
author | lassulus <lass@lassul.us> | 2017-04-27 23:13:58 +0200 |
---|---|---|
committer | lassulus <lass@lassul.us> | 2017-04-30 19:55:39 +0200 |
commit | ca30ec09790c60c5bc904488fb5e17c36dad10aa (patch) | |
tree | 487c9d1e84cb27812ed2c91c16b3a67c5114d922 /shell.nix |
"Boom!"
Diffstat (limited to 'shell.nix')
-rw-r--r-- | shell.nix | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/shell.nix b/shell.nix new file mode 100644 index 0000000..9abf4be --- /dev/null +++ b/shell.nix @@ -0,0 +1,39 @@ + +let + pname = "news"; + version = "1"; + + pkgs = nixpkgs // extrapkgs; + nixpkgs = import <nixpkgs> {}; + extrapkgs = { + }; + hsPkgs = pkgs.haskellPackages.override { + overrides = self: super: { + }; + }; + hsEnv = hsPkgs.ghcWithPackages (_hsPkgs: with _hsPkgs; + [ + bloomfilter + irc + irc-client + feed + split + warp + wai-util + wreq + ]); +in + +pkgs.myEnvFun { + name = "${pname}-${version}"; + + buildInputs = with pkgs; [ + hsEnv + ]; + + extraCmds = with pkgs; '' + $(grep export ${hsEnv.outPath}/bin/ghc) + ''; +} + +# vim: set fdm=marker : |