1
0
Fork 0
mirror of https://codeberg.org/icewind/haze.git synced 2026-06-03 17:14:08 +02:00

basic flake

This commit is contained in:
Robin Appelman 2022-07-15 13:44:58 +02:00
commit 59e9bb3631
4 changed files with 102 additions and 0 deletions

28
flake.nix Normal file
View file

@ -0,0 +1,28 @@
{
inputs = {
flake-utils.url = "github:numtide/flake-utils";
naersk.url = "github:nix-community/naersk";
};
outputs = { self, nixpkgs, flake-utils, naersk }:
flake-utils.lib.eachDefaultSystem (
system: let
pkgs = nixpkgs.legacyPackages."${system}";
naersk-lib = naersk.lib."${system}";
in
rec {
# `nix build`
packages.haze = naersk-lib.buildPackage {
pname = "haze";
root = ./.;
};
defaultPackage = packages.haze;
defaultApp = packages.haze;
# `nix develop`
devShell = pkgs.mkShell {
nativeBuildInputs = with pkgs; [ rustc cargo bacon ];
};
}
);
}