2023-09-20 13:09:16 +00:00
|
|
|
{
|
|
|
|
description = "Foo Bar Rust Project";
|
|
|
|
|
|
|
|
nixConfig = {
|
|
|
|
extra-substituters = [ "https://cache.m7.rs" ];
|
|
|
|
extra-trusted-public-keys = [ "cache.m7.rs:kszZ/NSwE/TjhOcPPQ16IuUiuRSisdiIwhKZCxguaWg=" ];
|
|
|
|
};
|
|
|
|
|
|
|
|
inputs = {
|
|
|
|
nixpkgs.url = "github:NixOS/nixpkgs/nixos-22.11";
|
|
|
|
};
|
|
|
|
|
2023-09-25 18:05:07 +00:00
|
|
|
outputs = { nixpkgs }:
|
2023-09-20 13:09:16 +00:00
|
|
|
let
|
|
|
|
forAllSystems = nixpkgs.lib.genAttrs [ "x86_64-linux" "aarch64-linux" ];
|
|
|
|
pkgsFor = nixpkgs.legacyPackages;
|
|
|
|
in
|
|
|
|
rec {
|
|
|
|
packages = forAllSystems (system: {
|
|
|
|
default = pkgsFor.${system}.callPackage ./default.nix { };
|
|
|
|
});
|
|
|
|
|
|
|
|
devShells = forAllSystems (system: {
|
|
|
|
default = pkgsFor.${system}.callPackage ./shell.nix { };
|
|
|
|
});
|
|
|
|
|
|
|
|
hydraJobs = packages;
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|