diff options
Diffstat (limited to 'nixpkgs/pkgs/tools/text/clima/default.nix')
-rw-r--r-- | nixpkgs/pkgs/tools/text/clima/default.nix | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/tools/text/clima/default.nix b/nixpkgs/pkgs/tools/text/clima/default.nix new file mode 100644 index 000000000000..cfa39590a714 --- /dev/null +++ b/nixpkgs/pkgs/tools/text/clima/default.nix @@ -0,0 +1,33 @@ +{ lib +, rustPlatform +, fetchFromGitHub +, stdenv +, darwin +}: + +rustPlatform.buildRustPackage rec { + pname = "clima"; + version = "1.1.0"; + + src = fetchFromGitHub { + owner = "Canop"; + repo = "clima"; + rev = "v${version}"; + hash = "sha256-CRnAxhkuCTyHR4uQofA51Dm3+YKqm3iwBkFNkbLTv1A="; + }; + + cargoHash = "sha256-jKY+Ta6lqMBUlqSViKk3W0CiO8oU+ucmleKDYRA54HQ="; + + buildInputs = lib.optionals stdenv.isDarwin [ + darwin.apple_sdk.frameworks.Security + ]; + + meta = with lib; { + description = "A minimal viewer for Termimad"; + homepage = "https://github.com/Canop/clima"; + changelog = "https://github.com/Canop/clima/releases/tag/${src.rev}"; + license = licenses.mit; + maintainers = with maintainers; [ figsoda ]; + mainProgram = "clima"; + }; +} |