Skip to content

Commit

Permalink
Add Nix derivation to build project
Browse files Browse the repository at this point in the history
  • Loading branch information
Gabriella439 committed Feb 25, 2018
1 parent 05f62d5 commit de13c97
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 0 deletions.
14 changes: 14 additions & 0 deletions default.nix
@@ -0,0 +1,14 @@
{ mkDerivation, base, exceptions, safe, stdenv, text, transformers
, transformers-compat, unexceptionalio
}:
mkDerivation {
pname = "errors";
version = "2.2.1";
src = ./.;
libraryHaskellDepends = [
base exceptions safe text transformers transformers-compat
unexceptionalio
];
description = "Simplified error-handling";
license = stdenv.lib.licenses.bsd3;
}
17 changes: 17 additions & 0 deletions release.nix
@@ -0,0 +1,17 @@
let
config = {
packageOverrides = pkgs: {
haskellPackages = pkgs.haskellPackages.override {
overrides = haskellPackagesNew: haskellPackagesOld: {
errors = haskellPackagesNew.callPackage ./default.nix { };
};
};
};
};

pkgs =
import <nixpkgs> { inherit config; };

in
{ inherit (pkgs.haskellPackages) errors;
}
1 change: 1 addition & 0 deletions shell.nix
@@ -0,0 +1 @@
(import ./release.nix).errors.env

0 comments on commit de13c97

Please sign in to comment.