forked from statebox/cql
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from BeFunctional/hix-and-flake
Hix and flake
- Loading branch information
Showing
26 changed files
with
270 additions
and
221 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,4 +5,5 @@ http/cql-http.cabal | |
.DS_Store | ||
*.yaml# | ||
*.cql# | ||
dist-newstyle/ | ||
|
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
{ | ||
# This is a template created by `hix init` | ||
inputs.haskellNix.url = "github:input-output-hk/haskell.nix"; | ||
inputs.nixpkgs.follows = "haskellNix/nixpkgs-unstable"; | ||
inputs.flake-utils.url = "github:numtide/flake-utils"; | ||
outputs = { self, nixpkgs, flake-utils, haskellNix }: | ||
let | ||
supportedSystems = [ | ||
"x86_64-linux" | ||
"x86_64-darwin" | ||
"aarch64-linux" | ||
"aarch64-darwin" | ||
]; | ||
in | ||
flake-utils.lib.eachSystem supportedSystems (system: | ||
let | ||
overlays = [ haskellNix.overlay | ||
(final: prev: { | ||
hixProject = | ||
final.haskell-nix.hix.project { | ||
src = ./.; | ||
evalSystem = "x86_64-darwin"; | ||
}; | ||
}) | ||
]; | ||
pkgs = import nixpkgs { inherit system overlays; inherit (haskellNix) config; }; | ||
flake = pkgs.hixProject.flake {}; | ||
in flake // { | ||
legacyPackages = pkgs; | ||
}); | ||
|
||
# --- Flake Local Nix Configuration ---------------------------- | ||
nixConfig = { | ||
# This sets the flake to use the IOG nix cache. | ||
# Nix should ask for permission before using it, | ||
# but remove it here if you do not want it to. | ||
extra-substituters = ["https://cache.iog.io"]; | ||
extra-trusted-public-keys = ["hydra.iohk.io:f/Ea+s+dFdN+3Y/G+FDgSq+a5NEWhJGzdjvKNGv0/EQ="]; | ||
allow-import-from-derivation = "true"; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
{pkgs, ...}: { | ||
# name = "project-name"; | ||
compiler-nix-name = "ghc8107"; # Version of GHC to use | ||
|
||
# Cross compilation support: | ||
# crossPlatforms = p: pkgs.lib.optionals pkgs.stdenv.hostPlatform.isx86_64 ([ | ||
# p.mingwW64 | ||
# p.ghcjs | ||
# ] ++ pkgs.lib.optionals pkgs.stdenv.hostPlatform.isLinux [ | ||
# p.musl64 | ||
# ]); | ||
|
||
# Tools to include in the development shell | ||
shell.tools.cabal = "latest"; | ||
# shell.tools.hlint = "latest"; | ||
# shell.tools.haskell-language-server = "latest"; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.