From 83a6034e81701dd467d5946e3d70b658ad02c575 Mon Sep 17 00:00:00 2001 From: Jack Kelly Date: Fri, 15 Mar 2024 13:43:20 +1000 Subject: [PATCH] flake.nix: add --- flake.nix | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 flake.nix diff --git a/flake.nix b/flake.nix new file mode 100644 index 0000000..96d3bbb --- /dev/null +++ b/flake.nix @@ -0,0 +1,28 @@ +{ + inputs = { + bellroy-nix-foss = { + url = "github:bellroy/bellroy-nix-foss"; + inputs.nixpkgs.follows = "nixpkgs"; + }; + nixpkgs.url = "github:nixos/nixpkgs"; + }; + + outputs = inputs: + inputs.bellroy-nix-foss.lib.haskellProject { + cabalPackages = [ + { + name = "servant-activeresource"; + path = ./servant-activeresource.nix; + } + ]; + supportedCompilers = [ "ghc8107" "ghc92" "ghc94" ]; + defaultCompiler = "ghc92"; +# haskellPackagesOverride = { compilerName, haskellLib, final, prev }: +# if compilerName == "ghc94" +# then { +# # hal doesn't support newer hedgehog +# hedgehog = haskellLib.compose.dontCheck (prev.callHackage "hedgehog" "1.1.2" { }); +# } +# else { }; + }; +}