2023-12-20 20:17:29 +03:00
|
|
|
{ pkgs ? import <nixpkgs> { system = builtins.currentSystem; }, lib ? pkgs.lib
|
|
|
|
, rustPlatform ? pkgs.rustPlatform, fetchCrate ? pkgs.fetchCrate }:
|
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "urouter";
|
2023-12-22 17:37:13 +03:00
|
|
|
version = "0.5.3";
|
2023-12-20 20:17:29 +03:00
|
|
|
|
|
|
|
src = fetchCrate {
|
|
|
|
inherit pname version;
|
2023-12-22 17:37:13 +03:00
|
|
|
sha256 = "sha256-8vQaaIn5mmaUM8KGtCx0HBVSWOz7dhVkaAU5AHU859Y=";
|
2023-12-20 20:17:29 +03:00
|
|
|
};
|
|
|
|
|
2023-12-22 17:37:13 +03:00
|
|
|
cargoSha256 = "sha256-toNctf5EeLEAX3IEmekqgl13Wh6x9YKKQvjPcxBa2VA=";
|
2023-12-20 20:17:29 +03:00
|
|
|
|
|
|
|
nativeBuildInputs = [ pkgs.pkg-config ];
|
|
|
|
}
|