bcb2f287e1
GitOrigin-RevId: d603719ec6e294f034936c0d0dc06f689d91b6c3
42 lines
997 B
Nix
42 lines
997 B
Nix
{ lib
|
|
, rustPlatform
|
|
, fetchFromGitHub
|
|
, stdenv
|
|
, darwin
|
|
}:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "caligula";
|
|
version = "0.4.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "ifd3f";
|
|
repo = "caligula";
|
|
rev = "v${version}";
|
|
hash = "sha256-fi4W7Z32S30kzKNVEDbV8PRyTW9fZxumBGtLn8SkI5Y=";
|
|
};
|
|
|
|
cargoHash = "sha256-ma7JVbWSiKfkCXCDwA8DFm2+KPrWR+8nSdgGSqehNg8=";
|
|
|
|
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";
|
|
homepage = "https://github.com/ifd3f/caligula/";
|
|
license = licenses.gpl3Only;
|
|
maintainers = with maintainers; [ ifd3f sodiboo ];
|
|
platforms = platforms.linux ++ platforms.darwin;
|
|
# https://github.com/ifd3f/caligula/issues/105
|
|
broken = stdenv.hostPlatform.isDarwin;
|
|
mainProgram = "caligula";
|
|
};
|
|
}
|