treewide: refactor package definitions (#431588)

This commit is contained in:
Yohann Boniface 2025-08-08 06:15:14 +02:00 committed by GitHub
commit a8c4e7f6a1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
16 changed files with 79 additions and 79 deletions

View File

@ -51,11 +51,11 @@ rustPlatform.buildRustPackage {
} }
''; '';
meta = with lib; { meta = {
description = "Create a video of how a git repository's code changes over time"; description = "Create a video of how a git repository's code changes over time";
homepage = "https://github.com/sloganking/codemov"; homepage = "https://github.com/sloganking/codemov";
license = licenses.mit; license = lib.licenses.mit;
maintainers = with maintainers; [ figsoda ]; maintainers = with lib.maintainers; [ figsoda ];
mainProgram = "codemov"; mainProgram = "codemov";
}; };
} }

View File

@ -20,17 +20,17 @@ appimageTools.wrapType2 rec {
inherit pname version src; inherit pname version src;
extraInstallCommands = '' extraInstallCommands = ''
install -m 444 -D ${appimageContents}/${pname}.desktop -t $out/share/applications install -m 444 -D ${appimageContents}/codux.desktop -t $out/share/applications
cp -r ${appimageContents}/usr/share/icons $out/share cp -r ${appimageContents}/usr/share/icons $out/share
substituteInPlace $out/share/applications/${pname}.desktop --replace 'Exec=AppRun' 'Exec=${pname}' substituteInPlace $out/share/applications/codux.desktop --replace 'Exec=AppRun' 'Exec=codux'
''; '';
meta = with lib; { meta = {
description = "Visual IDE for React"; description = "Visual IDE for React";
homepage = "https://www.codux.com"; homepage = "https://www.codux.com";
license = licenses.unfree; license = lib.licenses.unfree;
platforms = [ "x86_64-linux" ]; platforms = [ "x86_64-linux" ];
maintainers = with maintainers; [ maintainers = with lib.maintainers; [
dit7ya dit7ya
kashw2 kashw2
]; ];

View File

@ -10,7 +10,7 @@
spdlog, spdlog,
}: }:
stdenv.mkDerivation rec { stdenv.mkDerivation (finalAttrs: {
pname = "coeurl"; pname = "coeurl";
version = "0.3.1"; version = "0.3.1";
@ -18,7 +18,7 @@ stdenv.mkDerivation rec {
domain = "nheko.im"; domain = "nheko.im";
owner = "nheko-reborn"; owner = "nheko-reborn";
repo = "coeurl"; repo = "coeurl";
rev = "v${version}"; tag = "v${finalAttrs.version}";
hash = "sha256-NGplM5c/dMGSQbhKeuPOTWL8KsqvMd/76YuwCxnqNNE="; hash = "sha256-NGplM5c/dMGSQbhKeuPOTWL8KsqvMd/76YuwCxnqNNE=";
}; };
postPatch = '' postPatch = ''
@ -37,11 +37,11 @@ stdenv.mkDerivation rec {
spdlog spdlog
]; ];
meta = with lib; { meta = {
description = "Simple async wrapper around CURL for C++"; description = "Simple async wrapper around CURL for C++";
homepage = "https://nheko.im/nheko-reborn/coeurl"; homepage = "https://nheko.im/nheko-reborn/coeurl";
license = licenses.mit; license = lib.licenses.mit;
platforms = platforms.all; platforms = lib.platforms.all;
maintainers = with maintainers; [ rnhmjoj ]; maintainers = with lib.maintainers; [ rnhmjoj ];
}; };
} })

View File

@ -38,11 +38,11 @@ python3.pkgs.buildPythonApplication {
runHook postInstall runHook postInstall
''; '';
meta = with lib; { meta = {
description = "Detects the individual coffee grounds in a white-background picture to determine particle size distribution"; description = "Detects the individual coffee grounds in a white-background picture to determine particle size distribution";
mainProgram = "coffeegrindsize"; mainProgram = "coffeegrindsize";
homepage = "https://github.com/jgagneastro/coffeegrindsize"; homepage = "https://github.com/jgagneastro/coffeegrindsize";
license = licenses.mit; license = lib.licenses.mit;
maintainers = with maintainers; [ t4ccer ]; maintainers = with lib.maintainers; [ t4ccer ];
}; };
} }

View File

@ -13,11 +13,11 @@
passthru.updateScript = bundlerUpdateScript "colorls"; passthru.updateScript = bundlerUpdateScript "colorls";
meta = with lib; { meta = {
description = "Prettified LS"; description = "Prettified LS";
homepage = "https://github.com/athityakumar/colorls"; homepage = "https://github.com/athityakumar/colorls";
license = with licenses; mit; license = lib.licenses.mit;
maintainers = with maintainers; [ maintainers = with lib.maintainers; [
lukebfox lukebfox
nicknovitski nicknovitski
cbley cbley

View File

@ -21,8 +21,8 @@ stdenv.mkDerivation (finalAttrs: {
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "Linux-Comedi"; owner = "Linux-Comedi";
repo = "comedilib"; repo = "comedilib";
rev = "r${lib.replaceStrings [ "." ] [ "_" ] finalAttrs.version}"; tag = "r${lib.replaceStrings [ "." ] [ "_" ] finalAttrs.version}";
sha256 = "0kfs2dw62vjz8j7fgsxq6ky8r8kca726gyklbm6kljvgfh47lyfw"; hash = "sha256-3Hl6CHRvSzpNXXT6Z8RRbKKM/DS46+eORF9uYXgT2k0=";
}; };
nativeBuildInputs = [ nativeBuildInputs = [
@ -56,11 +56,11 @@ stdenv.mkDerivation (finalAttrs: {
"doc" "doc"
]; ];
meta = with lib; { meta = {
description = "Linux Control and Measurement Device Interface Library"; description = "Linux Control and Measurement Device Interface Library";
homepage = "https://github.com/Linux-Comedi/comedilib"; homepage = "https://github.com/Linux-Comedi/comedilib";
license = licenses.lgpl21; license = lib.licenses.lgpl21;
maintainers = [ maintainers.doronbehar ]; maintainers = with lib.maintainers; [ doronbehar ];
platforms = platforms.linux; platforms = lib.platforms.linux;
}; };
}) })

View File

@ -27,7 +27,7 @@ stdenvNoCC.mkDerivation {
runHook postInstall runHook postInstall
''; '';
meta = with lib; { meta = {
description = "Legible monospace font that looks like Comic Sans"; description = "Legible monospace font that looks like Comic Sans";
longDescription = '' longDescription = ''
A legible monospace font... the very typeface youve been trained to A legible monospace font... the very typeface youve been trained to
@ -36,11 +36,11 @@ stdenvNoCC.mkDerivation {
''; '';
homepage = "https://dtinth.github.io/comic-mono-font/"; homepage = "https://dtinth.github.io/comic-mono-font/";
license = licenses.mit; license = lib.licenses.mit;
maintainers = with maintainers; [ maintainers = with lib.maintainers; [
an-empty-string an-empty-string
totoroot totoroot
]; ];
platforms = platforms.all; platforms = lib.platforms.all;
}; };
} }

View File

@ -18,14 +18,14 @@
xorg, xorg,
}: }:
stdenv.mkDerivation rec { stdenv.mkDerivation (finalAttrs: {
pname = "commandergenius"; pname = "commandergenius";
version = "3.5.2"; version = "3.5.2";
src = fetchFromGitLab { src = fetchFromGitLab {
owner = "Dringgstein"; owner = "Dringgstein";
repo = "Commander-Genius"; repo = "Commander-Genius";
rev = "v${version}"; tag = "v${finalAttrs.version}";
hash = "sha256-4WfHdgn8frcDVa3Va6vo/jZihf09vIs+bNdAxScgovE="; hash = "sha256-4WfHdgn8frcDVa3Va6vo/jZihf09vIs+bNdAxScgovE=";
}; };
@ -72,7 +72,7 @@ stdenv.mkDerivation rec {
sed -i 's,APPDIR games,APPDIR bin,' src/install.cmake sed -i 's,APPDIR games,APPDIR bin,' src/install.cmake
''; '';
meta = with lib; { meta = {
description = "Modern Interpreter for the Commander Keen Games"; description = "Modern Interpreter for the Commander Keen Games";
longDescription = '' longDescription = ''
Commander Genius is an open-source clone of Commander Genius is an open-source clone of
@ -82,8 +82,8 @@ stdenv.mkDerivation rec {
are required to do so are required to do so
''; '';
homepage = "https://github.com/gerstrong/Commander-Genius"; homepage = "https://github.com/gerstrong/Commander-Genius";
maintainers = with maintainers; [ hce ]; maintainers = with lib.maintainers; [ hce ];
license = licenses.gpl2Plus; license = lib.licenses.gpl2Plus;
platforms = platforms.linux; platforms = lib.platforms.linux;
}; };
} })

View File

@ -3,12 +3,12 @@
stdenvNoCC, stdenvNoCC,
fetchzip, fetchzip,
}: }:
stdenvNoCC.mkDerivation rec { stdenvNoCC.mkDerivation (finalAttrs: {
pname = "commit-mono"; pname = "commit-mono";
version = "1.143"; version = "1.143";
src = fetchzip { src = fetchzip {
url = "https://github.com/eigilnikolajsen/commit-mono/releases/download/v${version}/CommitMono-${version}.zip"; url = "https://github.com/eigilnikolajsen/commit-mono/releases/download/v${finalAttrs.version}/CommitMono-${finalAttrs.version}.zip";
hash = "sha256-JTyPgWfbWq+lXQU/rgnyvPG6+V3f+FB5QUkd+I1oFKE="; hash = "sha256-JTyPgWfbWq+lXQU/rgnyvPG6+V3f+FB5QUkd+I1oFKE=";
stripRoot = false; stripRoot = false;
}; };
@ -21,16 +21,16 @@ stdenvNoCC.mkDerivation rec {
installPhase = '' installPhase = ''
runHook preInstall runHook preInstall
install -Dm644 CommitMono-${version}/*.otf -t $out/share/fonts/opentype install -Dm644 CommitMono-${finalAttrs.version}/*.otf -t $out/share/fonts/opentype
install -Dm644 CommitMono-${version}/ttfautohint/*.ttf -t $out/share/fonts/truetype install -Dm644 CommitMono-${finalAttrs.version}/ttfautohint/*.ttf -t $out/share/fonts/truetype
runHook postInstall runHook postInstall
''; '';
meta = with lib; { meta = {
description = "Anonymous and neutral programming typeface focused on creating a better reading experience"; description = "Anonymous and neutral programming typeface focused on creating a better reading experience";
homepage = "https://commitmono.com/"; homepage = "https://commitmono.com/";
license = licenses.ofl; license = lib.licenses.ofl;
maintainers = [ maintainers.yoavlavi ]; maintainers = with lib.maintainers; [ yoavlavi ];
platforms = platforms.all; platforms = lib.platforms.all;
}; };
} })

View File

@ -22,11 +22,11 @@ buildGoModule {
"-w" "-w"
]; ];
meta = with lib; { meta = {
description = "Confetti in your TTY"; description = "Confetti in your TTY";
homepage = "https://github.com/maaslalani/confetty"; homepage = "https://github.com/maaslalani/confetty";
license = licenses.mit; license = lib.licenses.mit;
maintainers = with maintainers; [ figsoda ]; maintainers = with lib.maintainers; [ figsoda ];
mainProgram = "confetty"; mainProgram = "confetty";
}; };
} }

View File

@ -12,7 +12,7 @@ buildGoModule rec {
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "SIFalcon"; owner = "SIFalcon";
repo = "confluencePot"; repo = "confluencePot";
rev = "v${version}"; tag = "v${version}";
hash = "sha256-jIbL6prOUII8o9FghIYa80BytJ9SSuyj/TZmAxwAbJk="; hash = "sha256-jIbL6prOUII8o9FghIYa80BytJ9SSuyj/TZmAxwAbJk=";
}; };
@ -24,7 +24,7 @@ buildGoModule rec {
''; '';
postInstall = lib.optionalString (!stdenv.hostPlatform.isDarwin) '' postInstall = lib.optionalString (!stdenv.hostPlatform.isDarwin) ''
mv $out/bin/confluencePot $out/bin/${pname} mv $out/bin/confluencePot $out/bin/confluencepot
''; '';
preFixup = '' preFixup = ''
@ -32,15 +32,15 @@ buildGoModule rec {
install -vD confluence.html -t $out/share install -vD confluence.html -t $out/share
''; '';
meta = with lib; { meta = {
description = "Honeypot for the Atlassian Confluence OGNL injection vulnerability"; description = "Honeypot for the Atlassian Confluence OGNL injection vulnerability";
homepage = "https://github.com/SIFalcon/confluencePot"; homepage = "https://github.com/SIFalcon/confluencePot";
longDescription = '' longDescription = ''
ConfluencePot is a simple honeypot for the Atlassian Confluence unauthenticated ConfluencePot is a simple honeypot for the Atlassian Confluence unauthenticated
and remote OGNL injection vulnerability (CVE-2022-26134). and remote OGNL injection vulnerability (CVE-2022-26134).
''; '';
license = with licenses; [ agpl3Plus ]; license = with lib.licenses; [ agpl3Plus ];
maintainers = with maintainers; [ fab ]; maintainers = with lib.maintainers; [ fab ];
mainProgram = "confluencepot"; mainProgram = "confluencepot";
}; };
} }

View File

@ -7,13 +7,13 @@
ncurses, ncurses,
}: }:
stdenv.mkDerivation rec { stdenv.mkDerivation (finalAttrs: {
pname = "conspy"; pname = "conspy";
version = "1.16"; version = "1.16";
src = fetchurl { src = fetchurl {
url = "mirror://sourceforge/project/conspy/conspy-${version}-1/conspy-${version}.tar.gz"; url = "mirror://sourceforge/project/conspy/conspy-${finalAttrs.version}-1/conspy-${finalAttrs.version}.tar.gz";
sha256 = "02andak806vd04bgjlr0y0d2ddx7cazyf8nvca80vlh8x94gcppf"; hash = "sha256-7l72SOoI0g2QYtsi579ip7cmGvAgU/kWAW0bgKZqVgk=";
curlOpts = " -A application/octet-stream "; curlOpts = " -A application/octet-stream ";
}; };
@ -33,11 +33,11 @@ stdenv.mkDerivation rec {
autoconf autoconf
''; '';
meta = with lib; { meta = {
description = "Linux text console viewer"; description = "Linux text console viewer";
mainProgram = "conspy"; mainProgram = "conspy";
license = licenses.epl10; license = lib.licenses.epl10;
maintainers = with maintainers; [ raskin ]; maintainers = with lib.maintainers; [ raskin ];
platforms = platforms.linux; platforms = lib.platforms.linux;
}; };
} })

View File

@ -32,11 +32,11 @@ buildNpmPackage rec {
forceEmptyCache = true; forceEmptyCache = true;
dontNpmBuild = true; dontNpmBuild = true;
meta = with lib; { meta = {
description = "Copilot Node.js server"; description = "Copilot Node.js server";
homepage = src.meta.homepage; homepage = src.meta.homepage;
license = licenses.unfree; # I don't know: https://github.com/jfcherng/copilot-node-server/blob/main/LICENSE.md license = lib.licenses.unfree; # I don't know: https://github.com/jfcherng/copilot-node-server/blob/main/LICENSE.md
maintainers = with maintainers; [ DamienCassou ]; maintainers = with lib.maintainers; [ DamienCassou ];
mainProgram = "copilot-node-server"; mainProgram = "copilot-node-server";
}; };
} }

View File

@ -5,23 +5,23 @@
autoreconfHook, autoreconfHook,
}: }:
stdenv.mkDerivation rec { stdenv.mkDerivation (finalAttrs: {
pname = "corkscrew"; pname = "corkscrew";
version = "2.0"; version = "2.0";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "bryanpkc"; owner = "bryanpkc";
repo = "corkscrew"; repo = "corkscrew";
rev = "v${version}"; tag = "v${finalAttrs.version}";
hash = "sha256-JiddvTbuOysenrVWGUEyKSzpCF1PJaYWQUdz3FuLCdw="; hash = "sha256-JiddvTbuOysenrVWGUEyKSzpCF1PJaYWQUdz3FuLCdw=";
}; };
nativeBuildInputs = [ autoreconfHook ]; nativeBuildInputs = [ autoreconfHook ];
meta = with lib; { meta = {
homepage = "https://github.com/bryanpkc/corkscrew"; homepage = "https://github.com/bryanpkc/corkscrew";
description = "Tool for tunneling SSH through HTTP proxies"; description = "Tool for tunneling SSH through HTTP proxies";
license = lib.licenses.gpl2Only; license = lib.licenses.gpl2Only;
platforms = platforms.unix; platforms = lib.platforms.unix;
mainProgram = "corkscrew"; mainProgram = "corkscrew";
}; };
} })

View File

@ -43,13 +43,13 @@ stdenv.mkDerivation (finalAttrs: {
}; };
}; };
meta = with lib; { meta = {
description = "Program which generates ASCII pictures of a cow with a message"; description = "Program which generates ASCII pictures of a cow with a message";
homepage = "https://cowsay.diamonds"; homepage = "https://cowsay.diamonds";
changelog = "https://github.com/cowsay-org/cowsay/releases/tag/v${finalAttrs.version}"; changelog = "https://github.com/cowsay-org/cowsay/releases/tag/v${finalAttrs.version}";
license = licenses.gpl3Only; license = lib.licenses.gpl3Only;
platforms = platforms.all; platforms = lib.platforms.all;
maintainers = with maintainers; [ maintainers = with lib.maintainers; [
rob rob
anthonyroussel anthonyroussel
]; ];

View File

@ -48,12 +48,12 @@ stdenv.mkDerivation (finalAttrs: {
updateScript = nix-update-script { }; updateScript = nix-update-script { };
}; };
meta = with lib; { meta = {
changelog = "https://github.com/cowsql/cowsql/releases/tag/${finalAttrs.version}"; changelog = "https://github.com/cowsql/cowsql/releases/tag/${finalAttrs.version}";
description = "Embeddable, replicated and fault tolerant SQL engine"; description = "Embeddable, replicated and fault tolerant SQL engine";
homepage = "https://github.com/cowsql/cowsql"; homepage = "https://github.com/cowsql/cowsql";
license = licenses.lgpl3Only; license = lib.licenses.lgpl3Only;
teams = [ teams.lxc ]; teams = with lib.teams; [ lxc ];
platforms = platforms.unix; platforms = lib.platforms.unix;
}; };
}) })