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-29 02:25:54 +00:00
|
|
|
haskellPackages = pkgs.haskellPackages;
|
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};
|
|
|
|
|
2022-09-29 02:25:54 +00:00
|
|
|
devShell = self.packages.${system}.${packageName}.env;
|
|
|
|
|
|
|
|
#devShell = pkgs.mkShell {
|
|
|
|
# buildInputs = with haskellPackages; [
|
|
|
|
# haskell-language-server
|
|
|
|
# ghcid
|
|
|
|
# cabal-install
|
|
|
|
# ] ++ [
|
|
|
|
# zlib
|
|
|
|
# ];
|
|
|
|
# inputsFrom = builtins.attrValues self.packages.${system};
|
|
|
|
#};
|
2022-09-16 13:57:37 +00:00
|
|
|
});
|
|
|
|
}
|
|
|
|
|