Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions pkgs/by-name/ma/matomo/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,14 @@
nixosTests,
nix-update-script,
}:

let
fetchurl' = lib.makeOverridable fetchurl;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Any reason fetchurl isn't overridable in the first place?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is a pending PR in #158018

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

To be clear, I don't exactly want fetchurl' = lib.makeOverridable fetchurl to become a widespread pattern, but seeing we removed matomo-beta in unstable, I think in this particular case we still want to make it easy to override the matomo src before that PR lands.

in
stdenv.mkDerivation (finalAttrs: {
pname = "matomo";
version = "5.2.2";

src = fetchurl {
src = fetchurl' {
url = "https://builds.matomo.org/matomo-${finalAttrs.version}.tar.gz";
hash = "sha256-ZEwz/KKZZwTFsKfwR0iKZM1ta4CUXJsWgBXika+pjb0=";
};
Expand Down Expand Up @@ -95,6 +97,8 @@ stdenv.mkDerivation (finalAttrs: {
extraArgs = [
"--url"
"https://github.com/matomo-org/matomo"
"--version-regex"
"^(\\d+\\.\\d+\\.\\d+)$"
];
};
tests = lib.optionalAttrs stdenv.hostPlatform.isLinux {
Expand Down