summaryrefslogtreecommitdiff
path: root/flake.nix
diff options
context:
space:
mode:
authorHannes Schulze <contact@haschu.me>2026-10-03 02:20:53 +0200
committerHannes Schulze <contact@haschu.me>2026-10-03 02:20:53 +0200
commit883ade0987dc9f5fb7206244b00fa76a46e50ecd (patch)
tree6d2403e9afe6580842d8834e2792d8c2da211c66 /flake.nix
initial commit
Diffstat (limited to 'flake.nix')
-rw-r--r--flake.nix30
1 files changed, 30 insertions, 0 deletions
diff --git a/flake.nix b/flake.nix
new file mode 100644
index 0000000..af1d01a
--- /dev/null
+++ b/flake.nix
@@ -0,0 +1,30 @@
+{
+ description = "Settle your expenses";
+
+ 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; };
+ haskell = pkgs.haskellPackages.ghcWithPackages (p:
+ with p; [ haskell-language-server blaze-html cgi ]);
+ shell = pkgs.mkShell {
+ name = "settlr";
+ packages = [ haskell pkgs.cabal-install ];
+ hardeningDisable = [ "fortify" ];
+ };
+ in
+ {
+ devShells = {
+ default = shell;
+ };
+ });
+}