Skip to content

Commit 880d20f

Browse files
committed
cargo-bundle: init at unstable-2023-03-17
1 parent 3c2e590 commit 880d20f

2 files changed

Lines changed: 43 additions & 0 deletions

File tree

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
{ lib
2+
, rustPlatform
3+
, fetchFromGitHub
4+
, pkg-config
5+
, stdenv
6+
, darwin
7+
, libxkbcommon
8+
, wayland
9+
}:
10+
11+
rustPlatform.buildRustPackage {
12+
pname = "cargo-bundle";
13+
# the latest stable release fails to build on darwin
14+
version = "unstable-2023-03-17";
15+
16+
src = fetchFromGitHub {
17+
owner = "burtonageo";
18+
repo = "cargo-bundle";
19+
rev = "eb9fe1b0880c7c0e929a93edaddcb0a61cd3f0d4";
20+
hash = "sha256-alO+Q9IK5Hz09+TqHWsbjuokxISKQfQTM6QnLlUNydw=";
21+
};
22+
23+
cargoHash = "sha256-h+QPbwYTJk6dieta/Q+VAhYe8/YH/Nik6gslzUn0YxI=";
24+
25+
nativeBuildInputs = [
26+
pkg-config
27+
];
28+
29+
buildInputs = lib.optionals stdenv.isDarwin [
30+
darwin.apple_sdk.frameworks.AppKit
31+
] ++ lib.optionals stdenv.isLinux [
32+
libxkbcommon
33+
wayland
34+
];
35+
36+
meta = with lib; {
37+
description = "Wrap rust executables in OS-specific app bundles";
38+
homepage = "https://github.com/burtonageo/cargo-bundle";
39+
license = with licenses; [ asl20 mit ];
40+
maintainers = with maintainers; [ figsoda ];
41+
};
42+
}

pkgs/top-level/all-packages.nix

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16016,6 +16016,7 @@ with pkgs;
1601616016
cargo-binutils = callPackage ../development/tools/rust/cargo-binutils { };
1601716017
cargo-bloat = callPackage ../development/tools/rust/cargo-bloat { };
1601816018
cargo-bolero = callPackage ../development/tools/rust/cargo-bolero { };
16019+
cargo-bundle = callPackage ../development/tools/rust/cargo-bundle { };
1601916020
cargo-cache = callPackage ../development/tools/rust/cargo-cache {
1602016021
inherit (darwin.apple_sdk.frameworks) Security;
1602116022
};

0 commit comments

Comments
 (0)