putex/package.nix

19 lines
287 B
Nix
Raw Permalink Normal View History

2024-07-24 15:18:10 +00:00
{ lib, rustPlatform }:
with builtins;
with lib;
let cargoToml = (fromTOML (readFile ./Cargo.toml));
in
rustPlatform.buildRustPackage rec {
pname = cargoToml.package.name;
version = cargoToml.package.version;
src = ./.;
cargoLock = {
lockFile = src + /Cargo.lock;
};
}