chore: reorganize nix files

This commit is contained in:
Henry-Hiles
2026-03-30 21:00:15 -04:00
committed by Henry Hiles
parent d8f67e3b46
commit db1b08532e
10 changed files with 14 additions and 37 deletions
+5 -3
View File
@@ -1,14 +1,16 @@
{
imports = [
./continuwuity
./rocksdb
./rust.nix
./uwulib
];
perSystem =
{ self', ... }:
{ self', pkgs, ... }:
{
packages.default = self'.packages.continuwuity-default-bin;
packages = {
default = self'.packages.continuwuity-default-bin;
rocksdb = pkgs.callPackage ./rocksdb.nix { };
};
};
}
-12
View File
@@ -1,12 +0,0 @@
{
perSystem =
{
pkgs,
...
}:
{
packages = {
rocksdb = pkgs.callPackage ./package.nix { };
};
};
}
-32
View File
@@ -1,32 +0,0 @@
{ inputs, ... }:
{
perSystem =
{
system,
lib,
...
}:
{
packages =
let
fnx = inputs.fenix.packages.${system};
stable = fnx.fromToolchainFile {
file = inputs.self + "/rust-toolchain.toml";
# See also `rust-toolchain.toml`
sha256 = "sha256-sqSWJDUxc+zaz1nBWMAJKTAGBuGWP25GCftIOlCEAtA=";
};
in
{
# used for building nix stuff (doesn't include rustfmt overhead)
build-toolchain = stable;
# used for dev shells
dev-toolchain = fnx.combine [
stable
# use the nightly rustfmt because we use nightly features
fnx.complete.rustfmt
];
};
};
}