mateamt/flake.nix

48 lines
1.5 KiB
Nix
Raw Normal View History

2022-09-16 13:57:37 +00:00
{
description = "A game stub written in Haskell";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs";
flake-utils.url = "github:numtide/flake-utils";
};
outputs = { self, nixpkgs, flake-utils }:
flake-utils.lib.eachDefaultSystem (system:
let
pkgs = nixpkgs.legacyPackages.${system};
2022-09-16 14:13:21 +00:00
haskellPackages = pkgs.haskellPackages.override {
overrides = hself: hsuper: {
pg-transact = with pkgs.haskell.lib;
2022-09-28 23:55:22 +00:00
doJailbreak (unmarkBroken (dontCheck doJailbreak(hsuper.pg-transact)));
2022-09-16 14:13:21 +00:00
hspec-wai-json = with pkgs.haskell.lib;
2022-09-28 23:55:22 +00:00
doJailbreak (unmarkBroken (dontCheck doJailbreak(hsuper.hspec-wai-json)));
2022-09-29 00:31:26 +00:00
token-bucket = with pkgs.haskell.lib;
doJailbreak (unmarkBroken (dontCheck doJailbreak(hsuper.token-bucket)));
2022-09-16 14:13:21 +00:00
};
};
2022-09-16 13:57:37 +00:00
jailbreakUnbreak = pkg:
pkgs.haskell.lib.doJailbreak (pkg.overrideAttrs (_: { meta = { }; }));
packageName = "mateamt";
in {
packages.${packageName} = # (ref:haskell-package-def)
haskellPackages.callCabal2nix packageName self rec {
# Dependency overrides go here
};
defaultPackage = self.packages.${system}.${packageName};
devShell = pkgs.mkShell {
buildInputs = with haskellPackages; [
haskell-language-server
ghcid
cabal-install
];
inputsFrom = builtins.attrValues self.packages.${system};
};
});
}