From 842b6f92dc9c7cb235c472e79486bea1e5c8332a Mon Sep 17 00:00:00 2001 From: ElnuDev Date: Thu, 10 Aug 2023 14:38:37 -0700 Subject: [PATCH] Add package metadata to flake.nix --- flake.nix | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/flake.nix b/flake.nix index 112a599..8e3f441 100644 --- a/flake.nix +++ b/flake.nix @@ -19,6 +19,12 @@ buildInputs = [ openssl ]; cargoHash = nixpkgs.lib.fakeHash; }; + meta = with nixpkgs.lib; { + homepage = "https://jichan.org"; + license = [ licenses.gpl3 ]; + platforms = [ system ]; + maintainers = with maintainers; [ elnudev ]; + }; in { devShells.${system}.default = with pkgs; mkShell { packages = [ bacon ]; @@ -30,12 +36,18 @@ version = "0.1.0"; buildAndTestSubdir = "tatoeba"; cargoHash = "sha256-74Jq3saaUyPvNm/0croVOBuMtpN8xT3S4z37nutJdw4="; + meta = meta // { + description = "A proxy of the Tatoeba API with no CORS restrictions."; + }; }); images = pkgs.rustPlatform.buildRustPackage (rustSettings // { pname = "images"; version = "0.1.0"; buildAndTestSubdir = "images"; cargoHash = "sha256-fKmTZTcJj/eYCQE9cjiXB/Pt6BdJNZ/e5cSRgbuPIJs="; + meta = meta // { + description = "An API for fetching images of a query, sourced from Microsoft Bing."; + }; }); }; };