mirror of
https://github.com/serokell/haskell-with-utf8.git
synced 2024-09-11 06:45:36 +03:00
Merge pull request #2 from serokell/kirelagin/haskell-nix
Build with haskell.nix
This commit is contained in:
commit
59af11bc28
19
flake.nix
19
flake.nix
@ -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;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
@ -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)",
|
||||
|
Loading…
Reference in New Issue
Block a user