wizard-wipeout/flake.nix

42 lines
1.2 KiB
Nix
Raw Normal View History

2023-12-04 16:20:06 +00:00
{
description = "A game about combating wizards";
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};
2023-12-05 04:41:16 +00:00
haskellPackages = pkgs.haskellPackages.override {
overrides = final: prev: {
#vty-unix = jailbreakUnbreak (pkgs.haskell.lib.dontCheck prev.vty-unix);
};
};
2023-12-04 16:20:06 +00:00
jailbreakUnbreak = pkg:
pkgs.haskell.lib.doJailbreak (pkg.overrideAttrs (_: { meta = { }; }));
packageName = "wizard-wipeout";
in rec {
packages.${packageName} = # (ref:haskell-package-def)
haskellPackages.callCabal2nix packageName self rec {
};
defaultPackage = self.packages.${system}.${packageName};
devShell = haskellPackages.shellFor {
packages = p: [ defaultPackage ];
withHoogle = true;
buildInputs = with haskellPackages; [
haskell-language-server
ghcid
cabal-install
];
};
});
}