mirror of
https://github.com/CHN-beta/nixpkgs.git
synced 2026-01-13 11:30:35 +08:00
Merge pull request #119167 from risicle/ris-syncthing-CVE-2021-21404-r20.09
[20.09] syncthing: add patch for CVE-2021-21404
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
{ buildGoModule, stdenv, lib, procps, fetchFromGitHub, nixosTests }:
|
||||
{ buildGoModule, stdenv, lib, procps, fetchFromGitHub, nixosTests, fetchpatch }:
|
||||
|
||||
let
|
||||
common = { stname, target, postInstall ? "" }:
|
||||
@@ -19,6 +19,11 @@ let
|
||||
|
||||
patches = [
|
||||
./add-stcli-target.patch
|
||||
(fetchpatch {
|
||||
name = "CVE-2021-21404.patch";
|
||||
url = "https://github.com/syncthing/syncthing/commit/fb4fdaf4c0a79c22cad000c42ac1394e3ccb6a97.patch";
|
||||
sha256 = "0xjh500fi50570dkf3xdaj2367ynn1cs95lypq6b0wi81kp7m540";
|
||||
})
|
||||
];
|
||||
BUILD_USER="nix";
|
||||
BUILD_HOST="nix";
|
||||
|
||||
Reference in New Issue
Block a user