From 5806dfc208511b123fd19e4ae7cf9e50dca7c76b Mon Sep 17 00:00:00 2001 From: Lennart Spitzner Date: Tue, 31 Jan 2023 15:07:50 +0000 Subject: [PATCH] Add seaaye stuff --- .gitignore | 3 ++ seaaye.nix | 83 +++++++++++++++++++++++++++++++++++++++++++++++++ stack-8-10.yaml | 31 ++++++++++++++++++ stack-9-0.yaml | 30 ++++++++++++++++++ stack-9-2.yaml | 30 ++++++++++++++++++ 5 files changed, 177 insertions(+) create mode 100644 seaaye.nix create mode 100644 stack-8-10.yaml create mode 100644 stack-9-0.yaml create mode 100644 stack-9-2.yaml diff --git a/.gitignore b/.gitignore index cdc020e..9cc9ef3 100644 --- a/.gitignore +++ b/.gitignore @@ -13,3 +13,6 @@ cabal.project.local* cabal.project.freeze .ghc.environment.* result +/nix/seaaye-cache +/nix/gcroots +/nix/ci-out diff --git a/seaaye.nix b/seaaye.nix new file mode 100644 index 0000000..7a37997 --- /dev/null +++ b/seaaye.nix @@ -0,0 +1,83 @@ +{ seaaye-spec = 1; + haskell-nix-url = https://github.com/input-output-hk/haskell.nix/archive/506208fc9226e207a7beb1b4a26bbd9504a0f680.tar.gz; + haskell-nix-nixpkgs = "nixpkgs-2205"; + package-name = "brittany"; + targets = + { + hackage-8-06 = { + resolver = "hackage"; + index-state = "2022-07-01T00:00:00Z"; + ghc-ver = "ghc865"; + enabled = false; + }; + hackage-8-08 = { + resolver = "hackage"; + index-state = "2022-07-01T00:00:00Z"; + ghc-ver = "ghc884"; + enabled = false; + }; + hackage-8-10 = { + resolver = "hackage"; + index-state = "2022-07-01T00:00:00Z"; + ghc-ver = "ghc8107"; + enabled = false; + }; + hackage-9-00 = { + resolver = "hackage"; + index-state = "2022-07-01T00:00:00Z"; + ghc-ver = "ghc902"; + enabled = false; + }; + hackage-9-02 = { + resolver = "hackage"; + index-state = "2022-07-01T00:00:00Z"; + ghc-ver = "ghc925"; + enabled = false; + }; + stackage-8-06 = { + resolver = "stackage"; + stackFile = "stack-8-6.yaml"; + ghc-ver = "ghc865"; + enabled = false; + }; + stackage-8-08 = { + resolver = "stackage"; + stackFile = "stack-8-8.yaml"; + ghc-ver = "ghc884"; + enabled = false; + }; + stackage-8-10 = { + resolver = "stackage"; + stackFile = "stack-8-10.yaml"; + ghc-ver = "ghc8107"; + }; + stackage-9-00 = { + resolver = "stackage"; + stackFile = "stack-9-0.yaml"; + ghc-ver = "ghc902"; + }; + stackage-9-02 = { + resolver = "stackage"; + stackFile = "stack-9-2.yaml"; + ghc-ver = "ghc925"; + }; + }; + module-flags = [ + # N.B.: There are haskell-nix module options. See the haskell-nix docs + # for details. Also, be careful about typos: In many cases you + # will not get errors but the typo'd flag will just not have any + # effect! + # { enableLibraryProfiling = true; } + # { packages.my-package.flags.my-package-examples-examples = true; } + # { packages.butcher.src = /nix/store/r4igx2ags5isp92v0kj27lwnhr4wlk3j-butcher; } + ]; + default-target = "stackage-9-00"; + do-check-hackage = "hackage.haskell.org"; + do-check-changelog = "changelog.md"; + localdeps = { butcher = /nix/store/a6xxf8wc4csj5wxnrn8w9fd1047qnq3b-butcher-sdist-unpacked; }; + # cabal-project-local = '' + # package brittany + # flags: +something + # ''; + # local-config-path = ./seaaye-local.nix; +} diff --git a/stack-8-10.yaml b/stack-8-10.yaml new file mode 100644 index 0000000..220b2ed --- /dev/null +++ b/stack-8-10.yaml @@ -0,0 +1,31 @@ +resolver: lts-18.28 + +packages: +- . + +extra-deps: + - data-tree-print-0.1.0.2 + +# Override default flag values for local packages and extra-deps +# flags: {} + +# Extra package databases containing global packages +# extra-package-dbs: [] + +# Control whether we use the GHC we find on the path +# system-ghc: true +# +# Require a specific version of stack, using version ranges +# require-stack-version: -any # Default +# require-stack-version: ">=2.1" +# +# Override the architecture used by stack, especially useful on Windows +# arch: i386 +# arch: x86_64 +# +# Extra directories used by stack for building +# extra-include-dirs: [/path/to/dir] +# extra-lib-dirs: [/path/to/dir] +# +# Allow a newer minor version of GHC than the snapshot specifies +# compiler-check: newer-minor diff --git a/stack-9-0.yaml b/stack-9-0.yaml new file mode 100644 index 0000000..6b1e11f --- /dev/null +++ b/stack-9-0.yaml @@ -0,0 +1,30 @@ +resolver: lts-19.33 + +packages: +- . + +extra-deps: [] + +# Override default flag values for local packages and extra-deps +# flags: {} + +# Extra package databases containing global packages +# extra-package-dbs: [] + +# Control whether we use the GHC we find on the path +# system-ghc: true +# +# Require a specific version of stack, using version ranges +# require-stack-version: -any # Default +# require-stack-version: ">=2.1" +# +# Override the architecture used by stack, especially useful on Windows +# arch: i386 +# arch: x86_64 +# +# Extra directories used by stack for building +# extra-include-dirs: [/path/to/dir] +# extra-lib-dirs: [/path/to/dir] +# +# Allow a newer minor version of GHC than the snapshot specifies +# compiler-check: newer-minor diff --git a/stack-9-2.yaml b/stack-9-2.yaml new file mode 100644 index 0000000..f92e1bd --- /dev/null +++ b/stack-9-2.yaml @@ -0,0 +1,30 @@ +resolver: lts-20.2 + +packages: +- . + +extra-deps: [] + +# Override default flag values for local packages and extra-deps +# flags: {} + +# Extra package databases containing global packages +# extra-package-dbs: [] + +# Control whether we use the GHC we find on the path +# system-ghc: true +# +# Require a specific version of stack, using version ranges +# require-stack-version: -any # Default +# require-stack-version: ">=2.1" +# +# Override the architecture used by stack, especially useful on Windows +# arch: i386 +# arch: x86_64 +# +# Extra directories used by stack for building +# extra-include-dirs: [/path/to/dir] +# extra-lib-dirs: [/path/to/dir] +# +# Allow a newer minor version of GHC than the snapshot specifies +# compiler-check: newer-minor