From 1f83264b9fa2e2bc8c09a267eaf21e3c6cba4362 Mon Sep 17 00:00:00 2001 From: linuxissuper Date: Sun, 1 Oct 2023 13:37:49 +0200 Subject: [PATCH] girouette: init at 0.7.4 --- pkgs/by-name/gi/girouette/package.nix | 43 +++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 pkgs/by-name/gi/girouette/package.nix diff --git a/pkgs/by-name/gi/girouette/package.nix b/pkgs/by-name/gi/girouette/package.nix new file mode 100644 index 00000000000..8cfd7dbf8ae --- /dev/null +++ b/pkgs/by-name/gi/girouette/package.nix @@ -0,0 +1,43 @@ +{ lib +, rustPlatform +, fetchFromGitHub +, pkg-config +, dbus +, openssl +, stdenv +, darwin +}: + +rustPlatform.buildRustPackage rec { + pname = "girouette"; + version = "0.7.4"; + + src = fetchFromGitHub { + owner = "gourlaysama"; + repo = "girouette"; + rev = "v${version}"; + hash = "sha256-CROd44lCCXlWF8X/9HyjtTjSlCUFkyke+BjkD4uUqXo="; + }; + + cargoHash = "sha256-AkagcIewHGPBYrITzI1YNPSJIN13bViDU6tbC+IeakY="; + + nativeBuildInputs = [ + pkg-config + ]; + + buildInputs = [ + dbus + openssl + ] ++ lib.optionals stdenv.isDarwin [ + darwin.apple_sdk.frameworks.Security + ]; + + meta = with lib; { + description = "Show the weather in the terminal, in style"; + homepage = "https://github.com/gourlaysama/girouette"; + changelog = "https://github.com/gourlaysama/girouette/blob/${src.rev}/CHANGELOG.md"; + license = with licenses; [ asl20 mit ]; + maintainers = with maintainers; [ linuxissuper ]; + mainProgram = "girouette"; + }; +}