65ccb6f831
Co-authored-by: 𝑷𝒉𝒊𝒍𝒐𝒄𝒂𝒍𝒚𝒔𝒕 <regime_skylark.0y@icloud.com> Co-authored-by: adisbladis <adisbladis@gmail.com>
56 lines
866 B
Nix
56 lines
866 B
Nix
{
|
|
lib,
|
|
mkKdeDerivation,
|
|
fetchFromGitLab,
|
|
rustPlatform,
|
|
rustc,
|
|
cargo,
|
|
cxx-rs,
|
|
corrosion,
|
|
}:
|
|
|
|
mkKdeDerivation rec {
|
|
pname = "cxx-rust-cssparser";
|
|
version = "1.0.0";
|
|
|
|
src = fetchFromGitLab {
|
|
domain = "invent.kde.org";
|
|
owner = "libraries";
|
|
repo = "cxx-rust-cssparser";
|
|
tag = "v${version}";
|
|
hash = "sha256-zYY9GmQb/Qbbu8AhOGHfrrQ563cIrnx9KMGkdledURw=";
|
|
};
|
|
|
|
extraNativeBuildInputs = [
|
|
rustPlatform.cargoSetupHook
|
|
rustc
|
|
cargo
|
|
cxx-rs
|
|
];
|
|
|
|
extraBuildInputs = [
|
|
corrosion
|
|
];
|
|
|
|
cargoRoot = "rust";
|
|
|
|
cargoDeps = rustPlatform.fetchCargoVendor {
|
|
inherit
|
|
pname
|
|
version
|
|
src
|
|
cargoRoot
|
|
;
|
|
hash = "sha256-CdOvP7VxS2JMD3MlRtc6QNUCGiVMGxiKayLG6vn6n+8=";
|
|
};
|
|
|
|
dontWrapQtApps = true;
|
|
|
|
meta.license = with lib.licenses; [
|
|
bsd2
|
|
cc0
|
|
lgpl2Only
|
|
lgpl3Only
|
|
];
|
|
}
|