mirror of
https://github.com/Phundrak/georm.git
synced 2025-12-15 01:01:53 +01:00
chore: simplify flake.nix and update flake.lock
This commit is contained in:
20
flake.nix
20
flake.nix
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user