Merge pull request #2 from serokell/kirelagin/haskell-nix

Build with haskell.nix
This commit is contained in:
Kirill Elagin 2020-02-17 17:57:31 -05:00 committed by GitHub
commit 59af11bc28
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 28 additions and 3 deletions

View File

@ -7,14 +7,27 @@
description = "Get your UTF-8 IO right on the first try";
outputs = { self, nixpkgs }:
{
outputs = { self, nixpkgs, haskell-nix }:
let
pkgs = nixpkgs {
overlays = haskell-nix.overlays;
};
project = pkgs.haskell-nix.stackProject {
src = pkgs.haskell-nix.haskellLib.cleanGit {
name = "haskell-utf8";
src = ./.;
};
};
utf8 = project.utf8;
in {
packages = {
haskell-utf8 = null;
haskell-utf8 = utf8.components.library;
};
checks = {
build = self.packages.haskell-utf8;
test = utf8.checks.utf8-test;
};
};
}

View File

@ -1,4 +1,16 @@
{
"haskell-nix": {
"branch": "master",
"description": "Alternative Haskell Infrastructure for Nixpkgs",
"homepage": "https://input-output-hk.github.io/haskell.nix",
"owner": "input-output-hk",
"repo": "haskell.nix",
"rev": "e9f59def792a01b9937ef0c27fe96903aa173829",
"sha256": "19384g77wd8rxpryj12m2002l7nfw3j9nv1w44j2apayj9y8sbll",
"type": "tarball",
"url": "https://github.com/input-output-hk/haskell.nix/archive/e9f59def792a01b9937ef0c27fe96903aa173829.tar.gz",
"url_template": "https://github.com/<owner>/<repo>/archive/<rev>.tar.gz"
},
"nixpkgs": {
"branch": "master",
"description": "Pinned Nixpkgs tree (master follows nixos-unstable-small, only tags have stable history)",