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";
|
2024-04-21 10:50:23 +03:00
|
|
|
version = "0.7.0";
|
2023-12-20 20:17:29 +03:00
|
|
|
|
|
|
|
src = fetchCrate {
|
|
|
|
inherit pname version;
|
2024-04-21 10:50:23 +03:00
|
|
|
sha256 = "sha256-2fPrZ4jn9bt7VwSnBXW65sTcrb+pcpMgexpGnz2n12w=";
|
2023-12-20 20:17:29 +03:00
|
|
|
};
|
|
|
|
|
2024-04-21 10:50:23 +03:00
|
|
|
cargoSha256 = "sha256-8bOX/aFSLWqLdjqpZA67iqaJMIQRMPRK38gbI9//tD8=";
|
2023-12-20 20:17:29 +03:00
|
|
|
|
|
|
|
nativeBuildInputs = [ pkgs.pkg-config ];
|
|
|
|
}
|