From aba41ae0d8872baad2e6e96da9a5b12d695dfd6b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Markus=20S=C3=BCtter?= Date: Sat, 26 Oct 2024 13:54:29 +0200 Subject: [PATCH 1/2] dbus-broker: add meta information and license to c-util library --- pkgs/os-specific/linux/dbus-broker/default.nix | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/pkgs/os-specific/linux/dbus-broker/default.nix b/pkgs/os-specific/linux/dbus-broker/default.nix index 784024f8754d..9414f4fb33fe 100644 --- a/pkgs/os-specific/linux/dbus-broker/default.nix +++ b/pkgs/os-specific/linux/dbus-broker/default.nix @@ -11,6 +11,10 @@ }: let + meta = { + maintainers = with lib.maintainers; [ peterhoeg ]; + platforms = lib.platforms.linux; + }; dep = { pname, version, hash, rev ? "v${version}", buildInputs ? [ ] }: stdenv.mkDerivation { @@ -22,6 +26,14 @@ let }; nativeBuildInputs = [ meson ninja pkg-config ]; inherit buildInputs; + meta = meta // { + description = "The C-Util Project is a collection of utility libraries for the C11 language."; + homepage = "https://c-util.github.io/"; + license = [ + lib.licenses.asl20 + lib.licenses.lgpl21Plus + ]; + }; }; # These libraries are not used outside of dbus-broker. @@ -89,11 +101,9 @@ stdenv.mkDerivation (finalAttrs: { doCheck = true; - meta = with lib; { + meta = meta // { description = "Linux D-Bus Message Broker"; homepage = "https://github.com/bus1/dbus-broker/wiki"; - license = licenses.asl20; - maintainers = with maintainers; [ peterhoeg ]; - platforms = platforms.linux; + license = lib.licenses.asl20; }; }) From 51301ccb5ffab1167a43f597a9e79e44078f0362 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Markus=20S=C3=BCtter?= Date: Sat, 26 Oct 2024 13:55:08 +0200 Subject: [PATCH 2/2] docker: add meta information and license to moby --- .../virtualization/docker/default.nix | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) diff --git a/pkgs/applications/virtualization/docker/default.nix b/pkgs/applications/virtualization/docker/default.nix index 1ffa016159aa..6c3347b24e9b 100644 --- a/pkgs/applications/virtualization/docker/default.nix +++ b/pkgs/applications/virtualization/docker/default.nix @@ -24,6 +24,16 @@ rec { , knownVulnerabilities ? [] }: let + docker-meta = { + license = lib.licenses.asl20; + maintainers = with lib.maintainers; [ + offline + vdemeester + periklis + teutat3s + ]; + }; + docker-runc = runc.overrideAttrs { pname = "docker-runc"; inherit version; @@ -160,6 +170,11 @@ rec { ++ lib.optional (!withBtrfs) "exclude_graphdriver_btrfs" ++ lib.optional (!withLvm) "exclude_graphdriver_devicemapper" ++ lib.optional withSeccomp "seccomp"; + + meta = docker-meta // { + homepage = "https://mobyproject.org/"; + description = "A collaborative project for the container ecosystem to assemble container-based systems."; + }; }); plugins = lib.optional buildxSupport docker-buildx @@ -257,7 +272,7 @@ rec { tests = lib.optionals (!clientOnly) { inherit (nixosTests) docker; }; }; - meta = with lib; { + meta = docker-meta // { homepage = "https://www.docker.com/"; description = "Open source project to pack, ship and run any application as a lightweight container"; longDescription = '' @@ -265,8 +280,6 @@ rec { To enable the docker daemon on NixOS, set the `virtualisation.docker.enable` option to `true`. ''; - license = licenses.asl20; - maintainers = with maintainers; [ offline vdemeester periklis teutat3s ]; mainProgram = "docker"; inherit knownVulnerabilities; };