Initial Commit

This commit is contained in:
2025-12-30 13:20:11 +00:00
commit 582faef52c
6 changed files with 52 additions and 0 deletions

31
naersk/flake.nix Normal file
View File

@@ -0,0 +1,31 @@
{
description = "";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs";
naersk.url = "github:nix-community/naersk";
};
outputs = { self, nixpkgs, naersk }: let
inherit (nixpkgs) lib;
systems = ["x86_64-linux" "aarch64-linux"];
eachSystem = f: lib.genAttrs systems (system: f {
inherit system;
pkgs = nixpkgs.legacyPackages.${system};
naersk = nixpkgs.legacyPackages.${system}.callPackage naersk {};
ownPkgs = self.packages.${system};
});
in {
packages = eachSystem ({naersk, ...}: {
default = naersk.buildPackage {
src = ./.;
};
});
devShells = eachSystem ({pkgs, ownPkgs, ...}: {
default = pkgs.mkShell {
inputsFrom = [ownPkgs.default];
packages = [pkgs.clippy pkgs.rust-analyzer pkgs.rustfmt];
};
});
};
}