10 lines
272 B
Nix
10 lines
272 B
Nix
|
{ pkgs ? import <nixpkgs> { } }:
|
||
|
let manifest = (pkgs.lib.importTOML ./Cargo.toml).package;
|
||
|
in
|
||
|
pkgs.rustPlatform.buildRustPackage rec {
|
||
|
pname = manifest.name;
|
||
|
version = manifest.version;
|
||
|
cargoLock.lockFile = ./Cargo.lock;
|
||
|
src = pkgs.lib.cleanSource ./.;
|
||
|
}
|