2023-11-25 04:27:03 +00:00
|
|
|
{
|
|
|
|
description = "Source files for my blog";
|
|
|
|
|
|
|
|
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};
|
|
|
|
|
|
|
|
haskellPackages = pkgs.haskellPackages;
|
|
|
|
|
|
|
|
jailbreakUnbreak = pkg:
|
|
|
|
pkgs.haskell.lib.doJailbreak (pkg.overrideAttrs (_: { meta = { }; }));
|
|
|
|
|
|
|
|
packageName = "chaoszone";
|
|
|
|
in rec {
|
2023-12-16 05:30:30 +00:00
|
|
|
packages.${packageName} = import ./default.nix {inherit pkgs self;};
|
2023-11-25 04:27:03 +00:00
|
|
|
|
|
|
|
defaultPackage = self.packages.${system}.${packageName};
|
|
|
|
|
2023-12-16 05:30:30 +00:00
|
|
|
devShell = import ./shell.nix {inherit pkgs; chaoszone = defaultPackage;};
|
2023-11-25 04:27:03 +00:00
|
|
|
#devShell = pkgs.mkShell {
|
|
|
|
# buildInputs = with haskellPackages; [
|
|
|
|
# haskell-language-server
|
|
|
|
# ghcid
|
|
|
|
# cabal-install
|
|
|
|
# ];
|
|
|
|
# nativeBuildInputs = with pkgs; [
|
|
|
|
# pkg-config
|
|
|
|
# glib
|
|
|
|
# freetype
|
|
|
|
# glew
|
|
|
|
# SDL2
|
|
|
|
# ];
|
|
|
|
# inputsFrom = builtins.attrValues self.packages.${system};
|
|
|
|
#};
|
|
|
|
});
|
|
|
|
}
|
|
|
|
|