Unverified Commit d237e4e8 authored by K900's avatar K900 Committed by GitHub
Browse files

Merge pull request #286522 from K900/plasma-6

Plasma 6
parents 0ba18f22 6a711189
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -108,3 +108,7 @@ charset = unset
[lib/tests/*.plist]
indent_style = tab
insert_final_newline = unset

[pkgs/kde/generated/**]
insert_final_newline = unset
end_of_line = unset
+12 −5
Original line number Diff line number Diff line
@@ -185,11 +185,18 @@ pkgs/development/python-modules/buildcatrust/ @ajs124 @lukegb @mweinelt
# Licenses
/lib/licenses.nix @alyssais

# Qt / KDE
/pkgs/applications/kde @ttuegel
/pkgs/desktops/plasma-5 @ttuegel
/pkgs/development/libraries/kde-frameworks @ttuegel
/pkgs/development/libraries/qt-5 @ttuegel
# Qt
/pkgs/development/libraries/qt-5 @NixOS/qt-kde
/pkgs/development/libraries/qt-6 @NixOS/qt-kde

# KDE / Plasma 5
/pkgs/applications/kde @NixOS/qt-kde
/pkgs/desktops/plasma-5 @NixOS/qt-kde
/pkgs/development/libraries/kde-frameworks @NixOS/qt-kde

# KDE / Plasma 6
/pkgs/kde @NixOS/qt-kde
/maintainers/scripts/kde @NixOS/qt-kde

# PostgreSQL and related stuff
/pkgs/servers/sql/postgresql @thoughtpolice @marsam
+31 −0
Original line number Diff line number Diff line
#!/usr/bin/env nix-shell
#!nix-shell -i bash -p gnutar jq reuse
set -eu
cd "$(dirname "$(readlink -f "$0")")"/../../..

TMPDIR=$(mktemp -d)
trap 'rm -rf $TMPDIR' EXIT

echo "# Prebuilding sources..."
nix-build -A kdePackages.sources --no-link || true

echo "# Evaluating sources..."
declare -A sources
eval "$(nix-instantiate --eval -A kdePackages.sources --json --strict | jq 'to_entries[] | "sources[" + .key + "]=" + .value' -r)"

echo "# Collecting licenses..."
for k in "${!sources[@]}"; do
    echo "- Processing $k..."

    if [ ! -f "${sources[$k]}" ]; then
        echo "Not found!"
        continue
    fi

    mkdir "$TMPDIR/$k"
    tar -C "$TMPDIR/$k" -xf "${sources[$k]}"

    (cd "$TMPDIR/$k"; reuse lint --json) | jq --arg name "$k" '{$name: .summary.used_licenses | sort}' -c > "$TMPDIR/$k.json"
done

jq -s 'add' -S "$TMPDIR"/*.json > pkgs/kde/generated/licenses.json
+11 −0
Original line number Diff line number Diff line
#!/usr/bin/env nix-shell
#!nix-shell -i nu -p nushell
cd $"($env.FILE_PWD)/../../.."

mkdir logs
nix-env -qaP -f . -A kdePackages --json --out-path | from json | values | par-each { |it|
    echo $"Processing ($it.pname)..."
    if "outputs" in $it {
        nix-store --read-log $it.outputs.out | save -f $"logs/($it.pname).log"
    }
}
+36 −0
Original line number Diff line number Diff line
#!/usr/bin/env nix-shell
#!nix-shell -i python3 -p "python3.withPackages(ps: [ ps.click ps.pyyaml ])"
import pathlib

import click

import utils

@click.command
@click.argument(
    "repo-metadata",
    type=click.Path(
        exists=True,
        file_okay=False,
        resolve_path=True,
        path_type=pathlib.Path,
    ),
)
@click.option(
    "--nixpkgs",
    type=click.Path(
        exists=True,
        file_okay=False,
        resolve_path=True,
        writable=True,
        path_type=pathlib.Path,
    ),
    default=pathlib.Path(__file__).parent.parent.parent.parent
)
def main(repo_metadata: pathlib.Path, nixpkgs: pathlib.Path):
    metadata = utils.KDERepoMetadata.from_repo_metadata_checkout(repo_metadata)
    out_dir = nixpkgs / "pkgs/kde/generated"
    metadata.write_json(out_dir)

if __name__ == "__main__":
    main()  # type: ignore
Loading