From 5f8c733db36c092022e8b797a25c71fc1450876e Mon Sep 17 00:00:00 2001 From: xenia Date: Sat, 21 Dec 2024 17:08:02 -0500 Subject: [PATCH] treewide: add meta --- TODO.md | 4 ---- pkgs/cmdline/eta/default.nix | 10 ++++++++++ pkgs/crypto/cado-nfs/default.nix | 15 +++++++++++++++ pkgs/lix/lix-plugins/default.nix | 8 ++++++++ pkgs/ocaml/ocaml-manual/default.nix | 8 ++++++++ pkgs/ocaml/ppx_unicode/default.nix | 8 ++++++++ pkgs/ocaml/systemd-ml/default.nix | 3 ++- pkgs/ocaml/xlog/default.nix | 8 ++++++++ pkgs/python/feedvalidator/default.nix | 9 +++++++++ pkgs/rust/zbasefind/default.nix | 2 ++ 10 files changed, 70 insertions(+), 5 deletions(-) diff --git a/TODO.md b/TODO.md index 1ef9115..bfe8eae 100644 --- a/TODO.md +++ b/TODO.md @@ -10,7 +10,3 @@ create NixOS VM test - test that ghidra-svrAdmin works as an unprivileged user in the `ghidra` group - possibly test remotely importing a binary. however, ghidra-svrAdmin working is a good indicator of the server being functional - -## general - -- meta info / license info for pkgs diff --git a/pkgs/cmdline/eta/default.nix b/pkgs/cmdline/eta/default.nix index 96b4049..06c0ce0 100644 --- a/pkgs/cmdline/eta/default.nix +++ b/pkgs/cmdline/eta/default.nix @@ -1,6 +1,7 @@ { fetchFromGitHub, stdenv, + lib, }: stdenv.mkDerivation { pname = "eta"; @@ -15,4 +16,13 @@ stdenv.mkDerivation { installPhase = '' make DESTDIR="$out" install ''; + + meta = { + description = "Generic tool for monitoring ETA and progress of an arbitrary process."; + homepage = "https://github.com/aioobe/eta"; + license = lib.licenses.gpl3Only; + maintainers = []; + mainProgram = "eta"; + platforms = lib.platforms.all; + }; } diff --git a/pkgs/crypto/cado-nfs/default.nix b/pkgs/crypto/cado-nfs/default.nix index 7aa9989..5d07efe 100644 --- a/pkgs/crypto/cado-nfs/default.nix +++ b/pkgs/crypto/cado-nfs/default.nix @@ -86,4 +86,19 @@ wrapProgram $out/bin/cado-nfs.py \ --prefix PATH : ${cadoBinPath} ''; + + meta = { + description = "Cado-NFS, An Implementation of the Number Field Sieve Algorithm"; + longDescription = '' + CADO-NFS is a complete implementation in C/C++ of the Number Field Sieve (NFS) algorithm for + factoring integers and computing discrete logarithms in finite fields. It consists in various + programs corresponding to all the phases of the algorithm, and a general script that runs + them, possibly in parallel over a network of computers. + ''; + homepage = "https://cado-nfs.gitlabpages.inria.fr/"; + license = lib.licenses.lgpl21Plus; + maintainers = []; + mainProgram = "cado-nfs.py"; + platforms = lib.platforms.all; + }; } diff --git a/pkgs/lix/lix-plugins/default.nix b/pkgs/lix/lix-plugins/default.nix index 2dbd03c..83d3bc7 100644 --- a/pkgs/lix/lix-plugins/default.nix +++ b/pkgs/lix/lix-plugins/default.nix @@ -30,4 +30,12 @@ lix boost182 ]; + + meta = { + description = "Collection of miscellaneous plugins for the nix expression language."; + homepage = "https://github.com/shlevy/nix-plugins"; + license = lib.licenses.mit; + maintainers = []; + platforms = lib.platforms.all; + }; } diff --git a/pkgs/ocaml/ocaml-manual/default.nix b/pkgs/ocaml/ocaml-manual/default.nix index 2d07332..9622b7b 100644 --- a/pkgs/ocaml/ocaml-manual/default.nix +++ b/pkgs/ocaml/ocaml-manual/default.nix @@ -21,4 +21,12 @@ mkdir -p "$out/share/doc/ocaml" cp -r . "$out/share/doc/ocaml/." ''; + + meta = { + description = "Offline manual for OCaml"; + homepage = "https://ocaml.org"; + license = lib.licenses.lgpl21Only; + maintainers = []; + platforms = lib.platforms.all; + }; } diff --git a/pkgs/ocaml/ppx_unicode/default.nix b/pkgs/ocaml/ppx_unicode/default.nix index 761f347..7ef5e12 100644 --- a/pkgs/ocaml/ppx_unicode/default.nix +++ b/pkgs/ocaml/ppx_unicode/default.nix @@ -20,4 +20,12 @@ buildDunePackage rec { nativeBuildInputs = [ ppxlib ]; propagatedBuildInputs = [ ppxlib uunf ]; + + meta = { + description = "opinionated ppx for string literals"; + homepage = "https://git.lain.faith/haskal/ppx_unicode"; + license = lib.licenses.cc-by-nc-sa-40; + maintainers = []; + platforms = with lib.platforms; linux ++ darwin; + }; } diff --git a/pkgs/ocaml/systemd-ml/default.nix b/pkgs/ocaml/systemd-ml/default.nix index 83322ae..50f3cf6 100644 --- a/pkgs/ocaml/systemd-ml/default.nix +++ b/pkgs/ocaml/systemd-ml/default.nix @@ -29,9 +29,10 @@ buildDunePackage rec { propagatedBuildInputs = [ cstruct dune-configurator eio eio_linux eio_main ppx_unicode ptime xlog ]; meta = { - description = ""; + description = "systemd-ml provides libsystemd-like functionality for interacting with the systemd service manager, in self-contained ocaml code (with a bit of C)."; homepage = "https://git.lain.faith/haskal/systemd-ml"; license = lib.licenses.fyptl; maintainers = []; + platforms = lib.platforms.linux; }; } diff --git a/pkgs/ocaml/xlog/default.nix b/pkgs/ocaml/xlog/default.nix index 4d94900..58a0723 100644 --- a/pkgs/ocaml/xlog/default.nix +++ b/pkgs/ocaml/xlog/default.nix @@ -22,4 +22,12 @@ buildDunePackage rec { buildInputs = [ ppx_unicode ]; propagatedBuildInputs = [ ptime ppxlib ]; nativeBuildInputs = [ ppxlib ppx_unicode ]; + + meta = { + description = "logging library for cats written in ocaml"; + homepage = "https://git.lain.faith/haskal/xlog"; + license = lib.licenses.lgpl2Plus; + maintainers = []; + platforms = with lib.platforms; linux ++ darwin; + }; } diff --git a/pkgs/python/feedvalidator/default.nix b/pkgs/python/feedvalidator/default.nix index 9a4c365..51e56d0 100644 --- a/pkgs/python/feedvalidator/default.nix +++ b/pkgs/python/feedvalidator/default.nix @@ -58,4 +58,13 @@ in buildPythonPackage rec { doCheck = false; pythonImportsCheck = [ "feedvalidator" ]; + + meta = { + description = "W3C-customized version of the feedvalidator"; + homepage = "https://github.com/w3c/feedvalidator"; + license = lib.licenses.mit; + maintainers = []; + mainProgram = "feedvalidator"; + platforms = lib.platforms.all; + }; } diff --git a/pkgs/rust/zbasefind/default.nix b/pkgs/rust/zbasefind/default.nix index 967d13e..c43797a 100644 --- a/pkgs/rust/zbasefind/default.nix +++ b/pkgs/rust/zbasefind/default.nix @@ -19,5 +19,7 @@ rustPlatform.buildRustPackage rec { homepage = "https://git.lain.faith/haskal/zbasefind"; license = lib.licenses.fyptl; maintainers = []; + mainProgram = "zbasefind"; + platforms = lib.platforms.all; }; }