initial commit

This commit is contained in:
Daniel Kauss Serna 2026-01-26 13:19:50 +01:00
commit 6667a969b7
10 changed files with 1340 additions and 0 deletions

34
flake.nix Normal file
View file

@ -0,0 +1,34 @@
{
description = "Chipburners home page";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
flake-utils.url = "github:numtide/flake-utils";
};
outputs = { self, nixpkgs, flake-utils }:
flake-utils.lib.eachDefaultSystem (system:
let
pkgs = import nixpkgs { inherit system; };
haskellApp = pkgs.haskellPackages.callCabal2nix "chipburners-club" ./. {
inherit (pkgs) zlib zstd;
};
in
{
packages.default = haskellApp;
devShells.default = pkgs.mkShell {
buildInputs = with pkgs; [
ghc
cabal-install
haskell-language-server
zlib
zstd
pkg-config
];
shellHook = ''
export LD_LIBRARY_PATH="${pkgs.lib.makeLibraryPath [ pkgs.zlib pkgs.zstd ]}:$LD_LIBRARY_PATH"
'';
};
});
}