Skip to content

Commit

Permalink
[24.05] vikunja: add patches for 0.24.5 security fixes (#358008)
Browse files Browse the repository at this point in the history
  • Loading branch information
tomodachi94 authored Nov 22, 2024
2 parents 95d7a37 + 298616d commit 0652220
Showing 1 changed file with 17 additions and 3 deletions.
20 changes: 17 additions & 3 deletions pkgs/by-name/vi/vikunja/package.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{ lib, fetchFromGitHub, stdenv, stdenvNoCC, nodePackages, buildGoModule, jq, mage, writeShellScriptBin, nixosTests, buildNpmPackage, moreutils, cacert }:
{ lib, fetchFromGitHub, fetchpatch, stdenv, stdenvNoCC, nodePackages, buildGoModule, jq, mage, writeShellScriptBin, nixosTests, buildNpmPackage, moreutils, cacert }:

let
version = "0.23.0";
Expand All @@ -9,9 +9,23 @@ let
hash = "sha256-DGdJ/qO86o4LDB2Soio6/zd5S0su6ffrtT+iOn1eQnA=";
};

patches = [
# security patches from 0.24.5
(fetchpatch {
name = "security-check-saved-filters-permissions.patch";
url = "https://github.com/go-vikunja/vikunja/commit/bbbd936868f73a73e37d0f40313274e9e0ba30ac.patch";
hash = "sha256-xEsecgmfxx3M92Bpe/cDYNghP5gvEDN5D0xDZEeETuU=";
})
(fetchpatch {
name = "security-check-saved-filters-permissions.patch";
url = "https://github.com/go-vikunja/vikunja/commit/3659b7b58d4405452f3e806e12b0e3dfb4577503.patch";
hash = "sha256-1TQFe1N3/gwbamN5ZzKgP04oRbx5x+Tlmrt8H7V/Q2A=";
})
];

frontend = stdenv.mkDerivation (finalAttrs: {
pname = "vikunja-frontend";
inherit version src;
inherit version src patches;

postPatch = ''
cd frontend
Expand Down Expand Up @@ -103,7 +117,7 @@ let
'';
in
buildGoModule {
inherit src version;
inherit src version patches;
pname = "vikunja";

nativeBuildInputs =
Expand Down

0 comments on commit 0652220

Please sign in to comment.