2021-11-04 00:23:52 +03:00
|
|
|
# SPDX-FileCopyrightText: 2021 Serokell <https://serokell.io/>
|
2020-02-16 03:08:31 +03:00
|
|
|
#
|
|
|
|
# SPDX-License-Identifier: MPL-2.0
|
|
|
|
|
|
|
|
{
|
|
|
|
description = "Get your UTF-8 IO right on the first try";
|
|
|
|
|
2021-11-03 22:34:22 +03:00
|
|
|
nixConfig = {
|
|
|
|
flake-registry = "https://github.com/serokell/flake-registry/raw/master/flake-registry.json";
|
|
|
|
};
|
|
|
|
|
2021-02-18 06:10:45 +03:00
|
|
|
inputs = {
|
2021-11-04 00:23:52 +03:00
|
|
|
serokell-nix.url = "github:serokell/serokell.nix/kirelagin/lib.haskell.makeFlake";
|
|
|
|
nixpkgs.url = "github:serokell/nixpkgs";
|
2021-11-03 22:34:22 +03:00
|
|
|
haskell-nix = {
|
|
|
|
inputs.hackage.follows = "hackage";
|
|
|
|
inputs.stackage.follows = "stackage";
|
|
|
|
};
|
|
|
|
hackage.flake = false;
|
|
|
|
stackage.flake = false;
|
2021-02-18 06:10:45 +03:00
|
|
|
};
|
|
|
|
|
2021-11-04 00:23:52 +03:00
|
|
|
outputs = { self, nixpkgs, flake-utils, serokell-nix, haskell-nix, hackage, stackage }:
|
2021-03-29 15:36:54 +03:00
|
|
|
flake-utils.lib.eachSystem [ "x86_64-linux" ] (system:
|
2021-02-18 06:10:45 +03:00
|
|
|
let
|
|
|
|
pkgs = nixpkgs.legacyPackages.${system}.extend haskell-nix.overlay;
|
|
|
|
|
2021-11-04 00:23:52 +03:00
|
|
|
flake =
|
|
|
|
serokell-nix.lib.haskell.makeFlake pkgs.haskell-nix pkgs.haskell-nix.stackProject {
|
|
|
|
src = ./.;
|
|
|
|
ghcVersions = [ "884" "8107" "901" ];
|
|
|
|
};
|
|
|
|
in flake // {
|
|
|
|
defaultPackage = flake.packages."with-utf8:lib:with-utf8";
|
|
|
|
defaultApp = flake.apps."with-utf8:exe:utf8-troubleshoot";
|
|
|
|
}
|
2021-02-18 06:10:45 +03:00
|
|
|
);
|
2020-02-16 03:08:31 +03:00
|
|
|
}
|