depot/third_party/nixpkgs/pkgs/by-name/ca/caligula/package.nix
Default email 83627f9931 Project import generated by Copybara.
GitOrigin-RevId: 2893f56de08021cffd9b6b6dfc70fd9ccd51eb60
2024-06-24 14:47:55 -04:00

46 lines
993 B
Nix

{ lib
, rustPlatform
, fetchFromGitHub
, llvmPackages
, 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=";
env = {
LIBCLANG_PATH = "${llvmPackages.libclang.lib}/lib";
};
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;
mainProgram = "caligula";
};
}