mirror of
https://github.com/circuithub/rel8.git
synced 2024-10-05 21:29:35 +03:00
Add nix expressions
This commit is contained in:
parent
2c6c8bc806
commit
53b370819a
14
default.nix
Normal file
14
default.nix
Normal file
@ -0,0 +1,14 @@
|
||||
{ mkDerivation, base, one-liner, opaleye, postgresql-simple
|
||||
, product-profunctors, profunctors, scientific, stdenv, streaming
|
||||
, tagged, text, exceptions, free
|
||||
}:
|
||||
mkDerivation {
|
||||
pname = "rel8";
|
||||
version = "0.1.0.0";
|
||||
src = ./.;
|
||||
libraryHaskellDepends = [
|
||||
base one-liner opaleye postgresql-simple product-profunctors
|
||||
profunctors scientific streaming tagged text exceptions free
|
||||
];
|
||||
license = stdenv.lib.licenses.bsd3;
|
||||
}
|
21
shell.nix
Normal file
21
shell.nix
Normal file
@ -0,0 +1,21 @@
|
||||
{ nixpkgs ? import <nixpkgs> {} }:
|
||||
|
||||
let
|
||||
|
||||
inherit (nixpkgs) pkgs;
|
||||
|
||||
f = import ./.;
|
||||
|
||||
haskellPackages =
|
||||
pkgs.haskell.packages.ghc802.override {
|
||||
overrides = self: super: {
|
||||
one-liner = super.callPackage /home/ollie/work/one-liner {};
|
||||
opaleye = pkgs.haskell.lib.dontCheck (super.callPackage /home/ollie/work/opaleye {});
|
||||
};
|
||||
};
|
||||
|
||||
drv = haskellPackages.callPackage f {};
|
||||
|
||||
in
|
||||
|
||||
if pkgs.lib.inNixShell then drv.env else drv
|
Loading…
Reference in New Issue
Block a user