2024-05-15 15:35:15 +00:00
|
|
|
{ lib
|
|
|
|
, rustPlatform
|
|
|
|
, fetchFromGitHub
|
2024-06-24 18:47:55 +00:00
|
|
|
, llvmPackages
|
2024-05-15 15:35:15 +00:00
|
|
|
, stdenv
|
|
|
|
, darwin
|
|
|
|
}:
|
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "caligula";
|
2024-06-05 15:53:02 +00:00
|
|
|
version = "0.4.7";
|
2024-05-15 15:35:15 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "ifd3f";
|
|
|
|
repo = "caligula";
|
|
|
|
rev = "v${version}";
|
2024-06-05 15:53:02 +00:00
|
|
|
hash = "sha256-fi4W7Z32S30kzKNVEDbV8PRyTW9fZxumBGtLn8SkI5Y=";
|
2024-05-15 15:35:15 +00:00
|
|
|
};
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
cargoHash = "sha256-ma7JVbWSiKfkCXCDwA8DFm2+KPrWR+8nSdgGSqehNg8=";
|
2024-05-15 15:35:15 +00:00
|
|
|
|
2024-06-24 18:47:55 +00:00
|
|
|
env = {
|
|
|
|
LIBCLANG_PATH = "${llvmPackages.libclang.lib}/lib";
|
|
|
|
};
|
|
|
|
|
|
|
|
|
2024-09-26 11:04:55 +00:00
|
|
|
buildInputs = lib.optionals stdenv.hostPlatform.isDarwin (
|
2024-05-15 15:35:15 +00:00
|
|
|
with darwin.apple_sdk.frameworks; [
|
|
|
|
Cocoa
|
|
|
|
IOKit
|
|
|
|
Foundation
|
|
|
|
DiskArbitration
|
|
|
|
]
|
|
|
|
);
|
|
|
|
|
|
|
|
RUSTFLAGS = "--cfg tracing_unstable";
|
|
|
|
|
|
|
|
meta = with lib; {
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "User-friendly, lightweight TUI for disk imaging";
|
2024-05-15 15:35:15 +00:00
|
|
|
homepage = "https://github.com/ifd3f/caligula/";
|
|
|
|
license = licenses.gpl3Only;
|
2024-06-05 15:53:02 +00:00
|
|
|
maintainers = with maintainers; [ ifd3f sodiboo ];
|
2024-05-15 15:35:15 +00:00
|
|
|
platforms = platforms.linux ++ platforms.darwin;
|
|
|
|
mainProgram = "caligula";
|
|
|
|
};
|
|
|
|
}
|