nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 rustPlatform,
4 fetchFromGitHub,
5}:
6
7rustPlatform.buildRustPackage rec {
8 pname = "caligula";
9 version = "0.4.10";
10
11 src = fetchFromGitHub {
12 owner = "ifd3f";
13 repo = "caligula";
14 rev = "v${version}";
15 hash = "sha256-oaSt6wzMzaGHPyuJ5NVcAJLblHQcHJA5a7o2wkJgZkU=";
16 };
17
18 cargoHash = "sha256-B09aKzNNhgXKg3PCYmlMz3/oOeeh1FQAL7+tywg/81Q=";
19
20 nativeBuildInputs = [
21 rustPlatform.bindgenHook
22 ];
23
24 env.RUSTFLAGS = "--cfg tracing_unstable";
25
26 meta = {
27 description = "User-friendly, lightweight TUI for disk imaging";
28 homepage = "https://github.com/ifd3f/caligula/";
29 license = lib.licenses.gpl3Only;
30 maintainers = with lib.maintainers; [
31 ifd3f
32 sodiboo
33 ];
34 platforms = lib.platforms.linux ++ lib.platforms.darwin;
35 mainProgram = "caligula";
36 };
37}