Loading pkgs/applications/version-management/forgejo/default.nix +57 −39 Original line number Diff line number Diff line { bash , brotli , buildGoModule , common-updater-scripts , coreutils , curl , fetchurl , forgejo , git , gzip , jq Loading @@ -15,6 +17,8 @@ , pam , pamSupport ? true , sqliteSupport ? true , xorg , runCommand , stdenv , writeShellApplication }: Loading Loading @@ -66,9 +70,22 @@ buildGoModule rec { --prefix PATH : ${lib.makeBinPath [ bash git gzip openssh ]} ''; passthru.tests = nixosTests.forgejo; passthru = { data-compressed = runCommand "data-compressed" { nativeBuildInputs = [ brotli xorg.lndir ]; } '' mkdir $out lndir ${forgejo.data}/ $out/ # Create static gzip and brotli files find -L $out -type f -regextype posix-extended -iregex '.*\.(css|html|js|svg|ttf|txt)' \ -exec gzip --best --keep --force {} ';' \ -exec brotli --best --keep --no-copy-stat {} ';' ''; tests = nixosTests.forgejo; passthru.updateScript = lib.getExe (writeShellApplication { updateScript = lib.getExe (writeShellApplication { name = "update-forgejo"; runtimeInputs = [ common-updater-scripts Loading Loading @@ -106,6 +123,7 @@ buildGoModule rec { update-source-version "${pname}" "$version" "$sri_hash" "$archive_url" ''; }); }; meta = with lib; { description = "A self-hosted lightweight software forge"; Loading Loading
pkgs/applications/version-management/forgejo/default.nix +57 −39 Original line number Diff line number Diff line { bash , brotli , buildGoModule , common-updater-scripts , coreutils , curl , fetchurl , forgejo , git , gzip , jq Loading @@ -15,6 +17,8 @@ , pam , pamSupport ? true , sqliteSupport ? true , xorg , runCommand , stdenv , writeShellApplication }: Loading Loading @@ -66,9 +70,22 @@ buildGoModule rec { --prefix PATH : ${lib.makeBinPath [ bash git gzip openssh ]} ''; passthru.tests = nixosTests.forgejo; passthru = { data-compressed = runCommand "data-compressed" { nativeBuildInputs = [ brotli xorg.lndir ]; } '' mkdir $out lndir ${forgejo.data}/ $out/ # Create static gzip and brotli files find -L $out -type f -regextype posix-extended -iregex '.*\.(css|html|js|svg|ttf|txt)' \ -exec gzip --best --keep --force {} ';' \ -exec brotli --best --keep --no-copy-stat {} ';' ''; tests = nixosTests.forgejo; passthru.updateScript = lib.getExe (writeShellApplication { updateScript = lib.getExe (writeShellApplication { name = "update-forgejo"; runtimeInputs = [ common-updater-scripts Loading Loading @@ -106,6 +123,7 @@ buildGoModule rec { update-source-version "${pname}" "$version" "$sri_hash" "$archive_url" ''; }); }; meta = with lib; { description = "A self-hosted lightweight software forge"; Loading