From 27d2f14c9b958a2658f0a5f25a0221ed429ec1a4 Mon Sep 17 00:00:00 2001 From: Niklas Korz Date: Thu, 2 Jan 2025 16:08:30 +0100 Subject: [PATCH] mobilizon: fix internal version (cherry picked from commit 2c43f705d0e60dbd6cc807b928f48d4c5072cd9a) --- pkgs/servers/mobilizon/0001-fix-version.patch | 13 +++++++++++++ pkgs/servers/mobilizon/default.nix | 5 +++++ 2 files changed, 18 insertions(+) create mode 100644 pkgs/servers/mobilizon/0001-fix-version.patch diff --git a/pkgs/servers/mobilizon/0001-fix-version.patch b/pkgs/servers/mobilizon/0001-fix-version.patch new file mode 100644 index 0000000000000..da4d8f436a52e --- /dev/null +++ b/pkgs/servers/mobilizon/0001-fix-version.patch @@ -0,0 +1,13 @@ +diff --git a/mix.exs b/mix.exs +index 8338abf8..883e6987 100644 +--- a/mix.exs ++++ b/mix.exs +@@ -1,7 +1,7 @@ + defmodule Mobilizon.Mixfile do + use Mix.Project + +- @version "5.1.0" ++ @version "5.1.1" + + def project do + [ diff --git a/pkgs/servers/mobilizon/default.nix b/pkgs/servers/mobilizon/default.nix index a007a30f6f260..efd40acbfeefb 100644 --- a/pkgs/servers/mobilizon/default.nix +++ b/pkgs/servers/mobilizon/default.nix @@ -19,6 +19,11 @@ in mixRelease rec { inherit (common) pname version src; + # Version 5.1.1 failed to bump their internal package version, + # which causes issues with static file serving in the NixOS module. + # See https://github.com/NixOS/nixpkgs/pull/370277 + patches = [ ./0001-fix-version.patch ]; + nativeBuildInputs = [ git cmake