From 2dd69fd52ed4a904844d9b61f68d877caa3a3a93 Mon Sep 17 00:00:00 2001 From: Heitor Augusto Date: Thu, 3 Jul 2025 08:17:07 -0300 Subject: [PATCH] cosmic-ext-applet-weather: init at 0-unstable-2025-08-23 --- .../co/cosmic-ext-applet-weather/package.nix | 55 +++++++++++++++++++ 1 file changed, 55 insertions(+) create mode 100644 pkgs/by-name/co/cosmic-ext-applet-weather/package.nix diff --git a/pkgs/by-name/co/cosmic-ext-applet-weather/package.nix b/pkgs/by-name/co/cosmic-ext-applet-weather/package.nix new file mode 100644 index 000000000000..28a22afe9552 --- /dev/null +++ b/pkgs/by-name/co/cosmic-ext-applet-weather/package.nix @@ -0,0 +1,55 @@ +{ + lib, + stdenv, + rustPlatform, + fetchFromGitHub, + libcosmicAppHook, + just, + nix-update-script, +}: +rustPlatform.buildRustPackage { + pname = "cosmic-ext-applet-weather"; + version = "0-unstable-2025-08-23"; + + src = fetchFromGitHub { + owner = "cosmic-utils"; + repo = "cosmic-ext-applet-weather"; + rev = "f613c9dd156e84290765c34ca98ff8ede3b530fa"; + hash = "sha256-VHCgMw4nWTKAbanEnMS/xCUzEW3NeWGmVkBqU2bJP/c="; + }; + + cargoHash = "sha256-CS4P1DHzTmkZdANw6UQsB0kjKTeaf3cAQ/2EiPHSg7g="; + + nativeBuildInputs = [ + libcosmicAppHook + just + ]; + + dontUseJustBuild = true; + dontUseJustCheck = true; + + justFlags = [ + "--set" + "prefix" + (placeholder "out") + "--set" + "cargo-target-dir" + "target/${stdenv.hostPlatform.rust.cargoShortTarget}" + ]; + + passthru.updateScript = nix-update-script { + extraArgs = [ + "--version" + "branch=HEAD" + ]; + }; + + meta = { + description = "Simple weather info applet for COSMIC"; + homepage = "https://github.com/cosmic-utils/cosmic-ext-applet-weather"; + license = lib.licenses.gpl3Only; + mainProgram = "cosmic-ext-applet-weather"; + maintainers = with lib.maintainers; [ HeitorAugustoLN ]; + platforms = lib.platforms.linux; + }; +}