chore: simplify flake.nix and update flake.lock

This commit is contained in:
2025-01-31 22:58:32 +01:00
parent b70b4b7a81
commit 003af71107
2 changed files with 6 additions and 26 deletions

View File

@@ -13,27 +13,7 @@
overlays = [ (import rust-overlay) ];
pkgs = import nixpkgs { inherit system overlays; };
rustVersion = (pkgs.rust-bin.fromRustupToolchainFile ./rust-toolchain.toml);
rustPlatform = pkgs.makeRustPlatform {
cargo = rustVersion;
rustc = rustVersion;
};
libName = "georm";
libRustBuildGeorm = rustPlatform.buildRustPackage {
pname = libName;
version = "0.1.0";
src = ./.;
cargoLock.lockFile = ./Cargo.lock;
buildPhase = ''
SQLX_OFFLINE="1" cargo build --release
'';
};
in {
packages = {
lib = libRustBuildGeorm;
};
defaultPackage = libRustBuildGeorm;
devShell = with pkgs; mkShell {
buildInputs = [
bacon