From a2ed961c894c242fcffe27ad24cd27523dc5ec62 Mon Sep 17 00:00:00 2001 From: Pol Dellaiera Date: Mon, 25 Dec 2023 10:57:52 +0100 Subject: [PATCH] hugo: add missing `meta.mainProgram` --- .../hugo/default.nix => by-name/hu/hugo/package.nix} | 10 ++++++---- pkgs/top-level/all-packages.nix | 2 -- 2 files changed, 6 insertions(+), 6 deletions(-) rename pkgs/{applications/misc/hugo/default.nix => by-name/hu/hugo/package.nix} (83%) diff --git a/pkgs/applications/misc/hugo/default.nix b/pkgs/by-name/hu/hugo/package.nix similarity index 83% rename from pkgs/applications/misc/hugo/default.nix rename to pkgs/by-name/hu/hugo/package.nix index a593ecdb1ad0..3c2cce32fb2c 100644 --- a/pkgs/applications/misc/hugo/default.nix +++ b/pkgs/by-name/hu/hugo/package.nix @@ -14,7 +14,7 @@ buildGoModule rec { src = fetchFromGitHub { owner = "gohugoio"; - repo = pname; + repo = "hugo"; rev = "refs/tags/v${version}"; hash = "sha256-XNOp0k2t5Tv4HKKz3ZqL/sAdiYedOACaZ/1T7t7/Q1A="; }; @@ -48,10 +48,12 @@ buildGoModule rec { version = "v${version}"; }; - meta = with lib; { + meta = { + changelog = "https://github.com/gohugoio/hugo/releases/tag/v${version}"; description = "A fast and modern static website engine"; homepage = "https://gohugo.io"; - license = licenses.asl20; - maintainers = with maintainers; [ schneefux Br1ght0ne Frostman ]; + license = lib.licenses.asl20; + mainProgram = "hugo"; + maintainers = with lib.maintainers; [ schneefux Br1ght0ne Frostman ]; }; } diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 4a5a6f9df840..ebf23d7bcd2a 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -32483,8 +32483,6 @@ with pkgs; huggle = libsForQt5.callPackage ../applications/misc/huggle { }; - hugo = callPackage ../applications/misc/hugo { }; - ghosttohugo = callPackage ../applications/misc/ghosttohugo {}; gatekeeper = callPackage ../applications/networking/cluster/gatekeeper { };