Add rudimentary flake

This commit is contained in:
2024-11-01 21:08:54 -05:00
parent 2a691ba199
commit 967a7032b8
4 changed files with 102 additions and 3 deletions
+28
View File
@@ -0,0 +1,28 @@
{
description = "SplitBit emulator and assembler";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs";
flake-parts.url = "github:hercules-ci/flake-parts";
};
outputs = inputs@{ self, nixpkgs, flake-parts }:
flake-parts.lib.mkFlake { inherit inputs; } {
imports = [ inputs.flake-parts.flakeModules.easyOverlay ];
systems = [
"x86_64-linux"
"x86_64-darwin"
"aarch64-linux" # untested
"aarch64-darwin" # untested
];
perSystem = { config, system, pkgs, ... }:
{
packages.default = pkgs.callPackage ./Nix/splitbit.nix {};
overlayAttrs.splitbit = config.packages.default;
devShells.default = pkgs.mkShell {
inputsFrom = [config.packages.default];
};
};
};
}