Skip to content

sourcehut.pastesrht: add missing backend component#267538

Merged
tomberek merged 3 commits intoNixOS:masterfrom
nessdoor:pkgs/paste.sr.ht
Nov 28, 2023
Merged

sourcehut.pastesrht: add missing backend component#267538
tomberek merged 3 commits intoNixOS:masterfrom
nessdoor:pkgs/paste.sr.ht

Conversation

@nessdoor
Copy link
Contributor

@nessdoor nessdoor commented Nov 14, 2023

Description of changes

The paste service has a backend component (pastesrht-api) like many other Sourcehut services, but this had been omitted from its derivation in Nixpkgs, resulting in a malfunctioning service. This PR compiles the missing component and integrates it into the NixOS module. In addition, paste has been updated to the latest patch level, from 0.15.1 to 0.15.2.

This is a follow-up PR to #245394 (comment), part of an ongoing series of PRs stemming from the fixes and improvements identified while testing the modifications brought by #245394.

Unfortunately, the Sourcehut module suffers from a scarcity of automated integration tests, so all functionalities have been tested by hand on a server running a complete Sourcehut instance. A more comprehensive battery of tests for all Sourcehut components will be added in a future PR.

Things done

  • Built on platform(s)
    • x86_64-linux
    • aarch64-linux
    • x86_64-darwin
    • aarch64-darwin
  • For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)
    • sandbox = relaxed
    • sandbox = true
  • Tested, as applicable:
  • Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
  • Tested basic functionality of all binary files (usually in ./result/bin/)
  • 23.11 Release Notes (or backporting 23.05 Release notes)
    • (Package updates) Added a release notes entry if the change is major or breaking
    • (Module updates) Added a release notes entry if the change is significant
    • (Module addition) Added a release notes entry if adding a new NixOS module
  • Fits CONTRIBUTING.md.

@github-actions github-actions bot added 6.topic: nixos Issues or PRs affecting NixOS modules, or package usability issues specific to NixOS 8.has: module (update) This PR changes an existing module in `nixos/` labels Nov 14, 2023
@ofborg ofborg bot requested a review from eadwu November 15, 2023 01:04
@ofborg ofborg bot added 11.by: package-maintainer This PR was created by a maintainer of all the package it changes. 10.rebuild-darwin: 1-10 This PR causes between 1 and 10 packages to rebuild on Darwin. 10.rebuild-darwin: 1 This PR causes 1 package to rebuild on Darwin. 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux. labels Nov 15, 2023
@nessdoor nessdoor requested a review from tomberek November 15, 2023 01:51
@christoph-heiss
Copy link
Contributor

christoph-heiss commented Nov 15, 2023

LGTM, I'll smoke-test it in the next few days if needed.

Result of nixpkgs-review pr 267538 run on x86_64-linux 1

2 packages blacklisted:
  • nixos-install-tools
  • tests.nixos-functions.nixos-test
2 packages built:
  • sourcehut.pastesrht
  • sourcehut.pastesrht.dist

@christoph-heiss
Copy link
Contributor

Just spun up a paste.sr.ht instance, seems fine. 👍

@github-actions
Copy link
Contributor

Successfully created backport PR for release-23.11:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

6.topic: nixos Issues or PRs affecting NixOS modules, or package usability issues specific to NixOS 8.has: module (update) This PR changes an existing module in `nixos/` 10.rebuild-darwin: 1-10 This PR causes between 1 and 10 packages to rebuild on Darwin. 10.rebuild-darwin: 1 This PR causes 1 package to rebuild on Darwin. 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux. 11.by: package-maintainer This PR was created by a maintainer of all the package it changes.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants