diff options
author | Weijia Wang <9713184+wegank@users.noreply.github.com> | 2024-05-11 18:14:40 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-05-11 18:14:40 +0200 |
commit | 123e3b240381941f0a82e4726387d0f5f32cc502 (patch) | |
tree | 04d517395bdcbe6e5e3321a96beff21c0d1c6b62 /pkgs/by-name | |
parent | 6ad5fd96dd74216c1b7480559b88f3c9be90a496 (diff) | |
parent | de569571cfd43d70588b25617c2c7c92f84ef195 (diff) |
Merge pull request #310023 from sodiboo/caligula
caligula: init at 0.4.5
Diffstat (limited to 'pkgs/by-name')
-rw-r--r-- | pkgs/by-name/ca/caligula/package.nix | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/pkgs/by-name/ca/caligula/package.nix b/pkgs/by-name/ca/caligula/package.nix new file mode 100644 index 0000000000000..f0f5c14664fc1 --- /dev/null +++ b/pkgs/by-name/ca/caligula/package.nix @@ -0,0 +1,42 @@ +{ lib +, rustPlatform +, fetchFromGitHub +, stdenv +, darwin +}: + +rustPlatform.buildRustPackage rec { + pname = "caligula"; + version = "0.4.5"; + + src = fetchFromGitHub { + owner = "ifd3f"; + repo = "caligula"; + rev = "v${version}"; + hash = "sha256-9+aLpxmMP76CsLFFmr1mhKgbaT7Zz0lx4D2jQCUA9VY="; + }; + + cargoHash = "sha256-VwtmU5jTQPn3hpNuLckPQl6joEFPfuax1gRVG0/nceg="; + + buildInputs = lib.optionals stdenv.isDarwin ( + with darwin.apple_sdk.frameworks; [ + Cocoa + IOKit + Foundation + DiskArbitration + ] + ); + + RUSTFLAGS = "--cfg tracing_unstable"; + + meta = with lib; { + description = "A user-friendly, lightweight TUI for disk imaging"; + homepage = "https://github.com/ifd3f/caligula/"; + license = licenses.gpl3Only; + maintainers = with maintainers; [ sodiboo ]; + platforms = platforms.linux ++ platforms.darwin; + # https://github.com/ifd3f/caligula/issues/105 + broken = stdenv.hostPlatform.isDarwin; + mainProgram = "caligula"; + }; +} |