mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-26 08:53:21 +00:00
starship: add patch for CVE-2024-41815
This commit is contained in:
parent
8031304124
commit
c2fb017dd3
@ -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 ];
|
||||
|
Loading…
Reference in New Issue
Block a user