depot/third_party/nixpkgs/pkgs/kde/gear/angelfish/default.nix
Default email c7cb07f092 Project import generated by Copybara.
GitOrigin-RevId: 1536926ef5621b09bba54035ae2bb6d806d72ac8
2024-02-29 21:09:43 +01:00

32 lines
689 B
Nix

{
mkKdeDerivation,
sources,
qtsvg,
qtwebengine,
corrosion,
rustPlatform,
cargo,
rustc,
# provided as callPackage input to enable easier overrides through overlays
cargoHash ? "sha256-kkoLWJvPx1Hq+MQkPgTffrTFYgVlVfKdmJq5ExAW1NE=",
qcoro,
}:
mkKdeDerivation rec {
pname = "angelfish";
inherit (sources.${pname}) version;
cargoDeps = rustPlatform.fetchCargoTarball {
# include version in the name so we invalidate the FOD
name = "${pname}-${version}";
src = sources.${pname};
hash = cargoHash;
};
extraNativeBuildInputs = [
rustPlatform.cargoSetupHook
cargo
rustc
];
extraBuildInputs = [corrosion qtsvg qtwebengine qcoro];
}