mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-20 16:15:43 +02:00
22 lines
541 B
Nix
22 lines
541 B
Nix
{
|
|
lib,
|
|
nixpkgsLib,
|
|
runCommandLocal,
|
|
}:
|
|
let
|
|
inherit (lib) attrNames filter length;
|
|
nixvimList = import ../lib/maintainers.nix;
|
|
nixpkgsList = nixpkgsLib.maintainers;
|
|
duplicates = filter (name: nixpkgsList ? ${name}) (attrNames nixvimList);
|
|
count = length duplicates;
|
|
in
|
|
runCommandLocal "maintainers-test" { inherit count duplicates; } ''
|
|
if [ $count -gt 0 ]; then
|
|
echo "$count nixvim maintainers are also nixpkgs maintainers:"
|
|
for name in $duplicates; do
|
|
echo "- $name"
|
|
done
|
|
exit 1
|
|
fi
|
|
touch $out
|
|
''
|