nixpkgs/pkgs/by-name/ca/caligula/package.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

43 lines
997 B
Nix
Raw Normal View History

2024-05-08 06:02:26 +01:00
{ lib
, rustPlatform
, fetchFromGitHub
, stdenv
, darwin
}:
rustPlatform.buildRustPackage rec {
pname = "caligula";
2024-05-24 16:31:48 +01:00
version = "0.4.7";
2024-05-08 06:02:26 +01:00
src = fetchFromGitHub {
owner = "ifd3f";
repo = "caligula";
rev = "v${version}";
2024-05-24 16:31:48 +01:00
hash = "sha256-fi4W7Z32S30kzKNVEDbV8PRyTW9fZxumBGtLn8SkI5Y=";
2024-05-08 06:02:26 +01:00
};
2024-05-24 16:31:48 +01:00
cargoHash = "sha256-ma7JVbWSiKfkCXCDwA8DFm2+KPrWR+8nSdgGSqehNg8=";
2024-05-08 06:02:26 +01:00
buildInputs = lib.optionals stdenv.isDarwin (
with darwin.apple_sdk.frameworks; [
Cocoa
IOKit
Foundation
DiskArbitration
]
);
RUSTFLAGS = "--cfg tracing_unstable";
meta = with lib; {
description = "User-friendly, lightweight TUI for disk imaging";
2024-05-08 06:02:26 +01:00
homepage = "https://github.com/ifd3f/caligula/";
license = licenses.gpl3Only;
2024-05-20 01:21:52 +01:00
maintainers = with maintainers; [ ifd3f sodiboo ];
2024-05-08 10:39:14 +01:00
platforms = platforms.linux ++ platforms.darwin;
# https://github.com/ifd3f/caligula/issues/105
broken = stdenv.hostPlatform.isDarwin;
2024-05-08 06:02:26 +01:00
mainProgram = "caligula";
};
}