Files
nixpkgs/pkgs/by-name/ca/cargo-bundle/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

45 lines
965 B
Nix

{
lib,
rustPlatform,
fetchFromGitHub,
pkg-config,
stdenv,
libxkbcommon,
wayland,
}:
rustPlatform.buildRustPackage {
pname = "cargo-bundle";
# the latest stable release fails to build on darwin
version = "unstable-2023-08-18";
src = fetchFromGitHub {
owner = "burtonageo";
repo = "cargo-bundle";
rev = "c9f7a182d233f0dc4ad84e10b1ffa0d44522ea43";
hash = "sha256-n+c83pmCvFdNRAlcadmcZvYj+IRqUYeE8CJVWWYbWDQ=";
};
cargoHash = "sha256-g898Oelrk/ok52raTEDhgtQ9psc0PFHd/uNnk1QeXCs=";
nativeBuildInputs = [
pkg-config
];
buildInputs = lib.optionals stdenv.hostPlatform.isLinux [
libxkbcommon
wayland
];
meta = with lib; {
description = "Wrap rust executables in OS-specific app bundles";
mainProgram = "cargo-bundle";
homepage = "https://github.com/burtonageo/cargo-bundle";
license = with licenses; [
asl20
mit
];
maintainers = with maintainers; [ figsoda ];
};
}