2022-10-15 13:02:13 -07:00
|
|
|
{
|
2025-09-24 14:33:20 +02:00
|
|
|
description = "A nix flake for the continuwuity project";
|
|
|
|
|
|
2023-04-04 16:56:51 -07:00
|
|
|
inputs = {
|
2025-09-24 14:33:20 +02:00
|
|
|
# basics
|
|
|
|
|
flake-parts.url = "github:hercules-ci/flake-parts";
|
|
|
|
|
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
|
|
|
|
|
|
|
|
|
|
# for rust via nix
|
|
|
|
|
crane.url = "github:ipetkov/crane";
|
2025-07-03 12:47:22 +02:00
|
|
|
fenix = {
|
2025-09-24 14:33:20 +02:00
|
|
|
url = "github:nix-community/fenix";
|
2025-07-03 12:47:22 +02:00
|
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
|
};
|
2025-09-24 14:33:20 +02:00
|
|
|
|
|
|
|
|
# for vuln checks
|
|
|
|
|
advisory-db = {
|
|
|
|
|
url = "github:rustsec/advisory-db";
|
|
|
|
|
flake = false;
|
|
|
|
|
};
|
|
|
|
|
|
2025-10-16 08:34:45 +02:00
|
|
|
treefmt-nix = {
|
|
|
|
|
url = "github:numtide/treefmt-nix";
|
|
|
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
|
};
|
|
|
|
|
|
2025-09-24 14:33:20 +02:00
|
|
|
# for default.nix
|
2025-07-03 12:47:22 +02:00
|
|
|
flake-compat = {
|
|
|
|
|
url = "github:edolstra/flake-compat?ref=master";
|
|
|
|
|
flake = false;
|
|
|
|
|
};
|
2023-04-04 16:56:51 -07:00
|
|
|
};
|
|
|
|
|
|
2025-07-03 12:47:22 +02:00
|
|
|
outputs =
|
2025-09-24 14:33:20 +02:00
|
|
|
inputs@{ flake-parts, ... }:
|
|
|
|
|
flake-parts.lib.mkFlake { inherit inputs; } {
|
|
|
|
|
imports = [ ./nix ];
|
|
|
|
|
systems = [
|
|
|
|
|
"x86_64-linux"
|
|
|
|
|
"aarch64-linux"
|
2026-04-08 10:35:22 -04:00
|
|
|
# support untested but theoretically there
|
|
|
|
|
"aarch64-darwin"
|
2025-09-24 14:33:20 +02:00
|
|
|
];
|
|
|
|
|
};
|
2022-10-15 13:02:13 -07:00
|
|
|
}
|