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.

47 lines
1006 B
Nix
Raw Normal View History

2024-05-08 05:02:26 +00:00
{ lib
, rustPlatform
, fetchFromGitHub
, llvmPackages
2024-05-08 05:02:26 +00:00
, stdenv
, darwin
}:
rustPlatform.buildRustPackage rec {
pname = "caligula";
2024-05-24 15:31:48 +00:00
version = "0.4.7";
2024-05-08 05:02:26 +00:00
src = fetchFromGitHub {
owner = "ifd3f";
repo = "caligula";
rev = "v${version}";
2024-05-24 15:31:48 +00:00
hash = "sha256-fi4W7Z32S30kzKNVEDbV8PRyTW9fZxumBGtLn8SkI5Y=";
2024-05-08 05:02:26 +00:00
};
2024-05-24 15:31:48 +00:00
cargoHash = "sha256-ma7JVbWSiKfkCXCDwA8DFm2+KPrWR+8nSdgGSqehNg8=";
2024-05-08 05:02:26 +00:00
env = {
LIBCLANG_PATH = "${llvmPackages.libclang.lib}/lib";
};
2024-05-08 05:02:26 +00:00
buildInputs = lib.optionals stdenv.hostPlatform.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;
2024-05-20 00:21:52 +00:00
maintainers = with maintainers; [ ifd3f sodiboo ];
2024-05-08 09:39:14 +00:00
platforms = platforms.linux ++ platforms.darwin;
2024-05-08 05:02:26 +00:00
mainProgram = "caligula";
};
}