Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
48 changes: 48 additions & 0 deletions pkgs/by-name/ni/nix-weather/package.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
{
lib,
stdenv,
rustPlatform,
fetchFromGitHub,
pkg-config,
openssl,
}:

rustPlatform.buildRustPackage rec {
pname = "nix-weather";
version = "0.0.2";

src = fetchFromGitHub {
owner = "cafkafk";
repo = pname;
rev = "v${version}";
hash = "sha256-4zcdQ28MejGgdyZgqQD2XHWj/PBDq4aW78jyeBDv2h8=";
};

cargoHash = "sha256-Hj9cB1CY6SEwwin85QnDy9+0dMhlKdnp2IE2yM5a9C8=";

nativeBuildInputs = [
pkg-config
];

buildInputs = [
openssl
];

meta = {
description = "Check Cache Availablility of NixOS Configurations";
longDescription = ''
fast rust tool to check availability of your entire system in caches. It so to speak "checks the weather" before going to update.

Heavily inspired by guix weather.
'';
homepage = "https://git.fem.gg/cafkafk/nix-weather";
changelog = "https://git.fem.gg/cafkafk/nix-weather/releases/tag/v${version}";
license = lib.licenses.eupl12;
maintainers = with lib.maintainers; [
freyacodes
cafkafk
];
mainProgram = "nix-weather";
platforms = lib.platforms.all;
};
}