This commit is contained in:
2026-07-02 19:20:41 +01:00
parent c1da3abe7d
commit a577296608
13 changed files with 476 additions and 66 deletions
+7 -26
View File
@@ -31,13 +31,11 @@
src = craneLib.cleanCargoSource ./.;
strictDeps = true;
buildInputs = [
# Add additional build inputs here
]
++ pkgs.lib.optionals pkgs.stdenv.isDarwin [
# Additional darwin specific inputs can be set here
pkgs.libiconv
];
buildInputs =
[ ]
++ pkgs.lib.optionals pkgs.stdenv.isDarwin [
pkgs.libiconv
];
};
fileSetForCrate =
@@ -64,20 +62,7 @@
src = fileSetForCrate ./crates/server;
}
);
# migration = craneLib.buildPackage (
# commonArgs
# // {
# pname = "migration";
# version = "0.1.0";
# cargoArtifacts = craneLib.buildDepsOnly commonArgs;
# cargoExtraArgs = "-p migration";
# src = fileSetForCrate ./crates/migration;
#
# # Additional environment variables or build phases/hooks can be set
# # here *without* rebuilding all dependency crates
# # MY_CUSTOM_VAR = "some value";
# }
# );
in
{
checks = {
@@ -91,15 +76,10 @@
};
devShells.default = craneLib.devShell {
# Inherit inputs from checks.
checks = self.checks.${system};
ADMIN_REF_CODE = "meowmeowpurrrmeow";
# Additional dev-shell environment variables can be set directly
# MY_CUSTOM_DEVELOPMENT_VAR = "something else";
# Extra inputs can be added here; cargo and rustc are provided by default.
packages = [
pkgs.clang
pkgs.mold
@@ -107,6 +87,7 @@
pkgs.cmake
pkgs.opus
pkgs.pkgconf
pkgs.just
];
};
}