mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2025-01-07 22:11:45 +03:00
librecad: apply patch for CVE-2021-45342
https://github.com/LibreCAD/LibreCAD/issues/1464
This commit is contained in:
parent
ebdea6366a
commit
6896348d0f
@ -1,6 +1,7 @@
|
|||||||
{ lib
|
{ lib
|
||||||
, boost
|
, boost
|
||||||
, fetchFromGitHub
|
, fetchFromGitHub
|
||||||
|
, fetchpatch
|
||||||
, installShellFiles
|
, installShellFiles
|
||||||
, mkDerivation
|
, mkDerivation
|
||||||
, muparser
|
, muparser
|
||||||
@ -23,6 +24,14 @@ mkDerivation rec {
|
|||||||
sha256 = "sha256-RNg7ioMriH4A7V65+4mh8NhsUHs/8IbTt38nVkYilCE=";
|
sha256 = "sha256-RNg7ioMriH4A7V65+4mh8NhsUHs/8IbTt38nVkYilCE=";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
patches = [
|
||||||
|
(fetchpatch {
|
||||||
|
url = "https://github.com/LibreCAD/LibreCAD/pull/1465/commits/4edcbe72679f95cb60979c77a348c1522a20b0f4.patch";
|
||||||
|
sha256 = "sha256-P0G2O5sL7Ip860ByxFQ87TfV/lq06wCQnzPxADGqFPs=";
|
||||||
|
name = "CVE-2021-45342.patch";
|
||||||
|
})
|
||||||
|
];
|
||||||
|
|
||||||
postPatch = ''
|
postPatch = ''
|
||||||
substituteInPlace scripts/postprocess-unix.sh \
|
substituteInPlace scripts/postprocess-unix.sh \
|
||||||
--replace /bin/sh ${runtimeShell}
|
--replace /bin/sh ${runtimeShell}
|
||||||
|
Loading…
Reference in New Issue
Block a user