starship: add patch for CVE-2024-41815

This commit is contained in:
Robert Scott 2024-08-26 22:41:49 +01:00
parent 8031304124
commit c2fb017dd3

View File

@ -1,6 +1,7 @@
{ lib
, stdenv
, fetchFromGitHub
, fetchpatch
, rustPlatform
, installShellFiles
, cmake
@ -22,6 +23,14 @@ rustPlatform.buildRustPackage rec {
hash = "sha256-3IO9hHuhzJsCHU/6BA5ylEKQI2ik6ZiRul/iO/vzii4=";
};
patches = [
(fetchpatch {
name = "CVE-2024-41815.patch";
url = "https://github.com/starship/starship/commit/cfc58161e0ec595db90af686ad77a73df6d44d74.patch";
hash = "sha256-JlhrcCsvIMH1XnFsx2b65Kbbe9Hsy7ffUMha1BISwtI=";
})
];
nativeBuildInputs = [ installShellFiles cmake ];
buildInputs = lib.optionals stdenv.isDarwin [ Security Foundation Cocoa ];