Skip to content

Commit

Permalink
[24.05] starship: add patch for CVE-2024-41815 (#337567)
Browse files Browse the repository at this point in the history
  • Loading branch information
LeSuisse committed Aug 30, 2024
2 parents d024f7a + c2fb017 commit 680c1ff
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions pkgs/tools/misc/starship/default.nix
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{ lib
, stdenv
, fetchFromGitHub
, fetchpatch
, rustPlatform
, installShellFiles
, cmake
Expand All @@ -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 ];
Expand Down

0 comments on commit 680c1ff

Please sign in to comment.