depot/third_party/nixpkgs/pkgs/development/tools/rust/cargo-bundle/default.nix
Default email 5e7c2d6cef Project import generated by Copybara.
GitOrigin-RevId: f99e5f03cc0aa231ab5950a15ed02afec45ed51a
2023-10-09 21:29:22 +02:00

42 lines
980 B
Nix

{ lib
, rustPlatform
, fetchFromGitHub
, pkg-config
, stdenv
, darwin
, 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-Ea658jHomktmzXtU5wmd0bRX+i5n46hCvexYxYbjjUc=";
nativeBuildInputs = [
pkg-config
];
buildInputs = lib.optionals stdenv.isDarwin [
darwin.apple_sdk.frameworks.AppKit
] ++ lib.optionals stdenv.isLinux [
libxkbcommon
wayland
];
meta = with lib; {
description = "Wrap rust executables in OS-specific app bundles";
homepage = "https://github.com/burtonageo/cargo-bundle";
license = with licenses; [ asl20 mit ];
maintainers = with maintainers; [ figsoda ];
};
}