Initial commit

This commit is contained in:
2022-10-07 18:59:44 +02:00
commit 11cd3ee503
8 changed files with 476 additions and 0 deletions

26
flake.nix Normal file
View File

@@ -0,0 +1,26 @@
{
description = "Flake utils demo";
inputs.flake-utils.url = "github:numtide/flake-utils";
outputs = { self, nixpkgs, flake-utils }:
flake-utils.lib.eachDefaultSystem (system:
let pkgs = nixpkgs.legacyPackages.${system}; in
{
packages = rec {
hello = pkgs.hello;
default = hello;
};
apps = rec {
hello = flake-utils.lib.mkApp { drv = self.packages.${system}.hello; };
default = hello;
};
devShell = pkgs.mkShell {
buildInputs = with pkgs; [
cabal-install
ghc
];
};
}
);
}