-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathflake.nix
27 lines (24 loc) · 832 Bytes
/
flake.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
{
description = "GoSkew is a program for post-processing g-code to account for axis skew.";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
flake-parts.url = "github:hercules-ci/flake-parts";
};
outputs = inputs@{ flake-parts, ... }:
flake-parts.lib.mkFlake { inherit inputs; } {
perSystem = { config, pkgs, ... }: {
packages = rec {
goskew = pkgs.callPackage ./package.nix { };
default = goskew;
};
devShells.default = pkgs.mkShell {
packages = with pkgs; [ git go_1_22 ];
};
overlayAttrs = {
inherit (config.packages) goskew;
};
};
systems = [ "x86_64-linux" "aarch64-linux" "aarch64-darwin" "x86_64-darwin" ];
imports = [ inputs.flake-parts.flakeModules.easyOverlay ];
};
}