eagle/flake.nix

25 lines
710 B
Nix
Raw Normal View History

2024-06-19 23:25:45 +02:00
{
inputs = {
2024-06-21 12:35:45 +02:00
naersk.url = "github:nix-community/naersk/master";
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
rust-overlay.url = "github:oxalica/rust-overlay";
utils.url = "github:numtide/flake-utils";
2024-06-19 23:25:45 +02:00
};
2024-06-21 12:35:45 +02:00
outputs = { self, nixpkgs, rust-overlay, utils, naersk }:
utils.lib.eachDefaultSystem (system:
let
pkgs = import nixpkgs { inherit system; };
2024-06-19 23:25:45 +02:00
2024-06-21 12:35:45 +02:00
naersk-lib = pkgs.callPackage naersk {};
in
{
defaultPackage = naersk-lib.buildPackage {
src = ./.;
doCheck = true;
};
devShell = with pkgs; mkShell {
nativeBuildInputs = with pkgs; [rustc cargo rustfmt pre-commit];
};
2024-06-19 23:25:45 +02:00
});
2024-06-21 12:35:45 +02:00
}