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-21 19:07:22 +03:00
|
|
|
version = "0.5.0";
|
2023-12-20 20:17:29 +03:00
|
|
|
|
|
|
|
src = fetchCrate {
|
|
|
|
inherit pname version;
|
2023-12-21 19:07:22 +03:00
|
|
|
sha256 = "sha256-4+p5CicHzpU15c6aK5R5cf5e0gxWoWf/5jhxDrD0Po8=";
|
2023-12-20 20:17:29 +03:00
|
|
|
};
|
|
|
|
|
2023-12-21 19:07:22 +03:00
|
|
|
cargoSha256 = "sha256-9qEu9EzQ5jpMa9veY/ozUWiOVCgs6iZ6AJsZb/dHgDo=";
|
2023-12-20 20:17:29 +03:00
|
|
|
|
|
|
|
nativeBuildInputs = [ pkgs.pkg-config ];
|
|
|
|
}
|