This commit is contained in:
Sridhar Ratnakumar 2023-07-23 10:11:14 -04:00
parent d72071c973
commit 5074167723

View file

@ -15,7 +15,6 @@
inputs.treefmt-nix.flakeModule inputs.treefmt-nix.flakeModule
]; ];
perSystem = { config, self', pkgs, lib, system, ... }: perSystem = { config, self', pkgs, lib, system, ... }:
let let
cargoToml = builtins.fromTOML (builtins.readFile ./Cargo.toml); cargoToml = builtins.fromTOML (builtins.readFile ./Cargo.toml);
nonRustDeps = [ nonRustDeps = [
@ -24,8 +23,7 @@
in in
{ {
# Rust package # Rust package
packages.default = packages.default = pkgs.rustPlatform.buildRustPackage {
pkgs.rustPlatform.buildRustPackage {
inherit (cargoToml.package) name version; inherit (cargoToml.package) name version;
src = ./.; src = ./.;
cargoLock.lockFile = ./Cargo.lock; cargoLock.lockFile = ./Cargo.lock;