Files
nixpkgs/pkgs/by-name/ca/cargo-ui/package.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

75 lines
1.3 KiB
Nix

{
lib,
rustPlatform,
fetchCrate,
pkg-config,
libgit2,
openssl,
stdenv,
expat,
fontconfig,
libGL,
xorg,
}:
rustPlatform.buildRustPackage rec {
pname = "cargo-ui";
version = "0.3.3";
src = fetchCrate {
inherit pname version;
hash = "sha256-M/ljgtTHMSc7rY/a8CpKGNuOSdVDwRt6+tzPPHdpKOw=";
};
cargoHash = "sha256-odcyKOveYCWQ35uh//s19Jtq7OqiUnkeqbh90VWHp9A=";
nativeBuildInputs = [
pkg-config
];
buildInputs = [
libgit2
openssl
]
++ lib.optionals stdenv.hostPlatform.isLinux [
expat
fontconfig
libGL
xorg.libX11
xorg.libXcursor
xorg.libXi
xorg.libXrandr
xorg.libxcb
];
postFixup = lib.optionalString stdenv.hostPlatform.isLinux ''
patchelf $out/bin/cargo-ui \
--add-rpath ${
lib.makeLibraryPath [
fontconfig
libGL
]
}
'';
env = {
LIBGIT2_NO_VENDOR = 1;
};
meta = {
description = "GUI for Cargo";
mainProgram = "cargo-ui";
homepage = "https://github.com/slint-ui/cargo-ui";
changelog = "https://github.com/slint-ui/cargo-ui/blob/v${version}/CHANGELOG.md";
license = with lib.licenses; [
mit
asl20
gpl3Only
];
maintainers = with lib.maintainers; [
figsoda
matthiasbeyer
];
};
}