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 07:07:59 +03:00
|
|
|
version = "0.4.0";
|
2023-12-20 20:17:29 +03:00
|
|
|
|
|
|
|
src = fetchCrate {
|
|
|
|
inherit pname version;
|
2023-12-21 07:07:59 +03:00
|
|
|
sha256 = "sha256-KhluExV7RP6+L5ZC9inu0tFsM4Gk3yuaM6EZud0O3Qs=";
|
2023-12-20 20:17:29 +03:00
|
|
|
};
|
|
|
|
|
2023-12-21 07:07:59 +03:00
|
|
|
cargoSha256 = "sha256-dSMDsh5gH9jbwfnrL+WHwFPr+rk/z/A5drsX4BdXv18=";
|
2023-12-20 20:17:29 +03:00
|
|
|
|
|
|
|
nativeBuildInputs = [ pkgs.pkg-config ];
|
|
|
|
}
|