This commit is contained in:
Robin Appelman 2024-04-08 22:50:21 +02:00
commit d4bef4ac01
4 changed files with 7 additions and 5 deletions

View file

@ -5,13 +5,14 @@
lib,
}: let
inherit (lib.sources) sourceByRegex;
inherit (builtins) fromTOML readFile;
src = sourceByRegex ./. ["Cargo.*" "(src|benches)(/.*)?"];
version = (fromTOML (readFile ./Cargo.toml)).package.version;
in
rustPlatform.buildRustPackage rec {
name = "palantir";
version = "1.2.0";
inherit src;
inherit src version;
cargoLock = {
lockFile = ./Cargo.lock;