Unverified Commit d2e37478 authored by Alyssa Ross's avatar Alyssa Ross Committed by GitHub
Browse files

cosmic-greeter: apply upstream patch for security hardening (#499524)

parents 6c332ebb 64db9dd5
Loading
Loading
Loading
Loading
+11 −1
Original line number Diff line number Diff line
@@ -15,6 +15,7 @@
  nix-update-script,
  nixosTests,
  orca,
  fetchpatch2,
}:

rustPlatform.buildRustPackage (finalAttrs: {
@@ -29,7 +30,16 @@ rustPlatform.buildRustPackage (finalAttrs: {
    hash = "sha256-U0JrxvMWzISSA0tP8moasN7iN7TfZreEwbvWZGHRn8E=";
  };

  cargoHash = "sha256-sNJTXBInr/h8w5dhOOP9ceBYWBcJW3qGjDuaG6UTV90=";
  cargoHash = "sha256-J5ycaeKZsEBPcI9JH8bHsOAcXXwcx/D21GlVhJZbGwM=";

  cargoPatches = [
    (fetchpatch2 {
      # https://github.com/pop-os/cosmic-greeter/pull/426
      name = "security-hardening.patch";
      url = "https://github.com/pop-os/cosmic-greeter/commit/6049b50f8984f98c2c61117d86b9f6f9befc9300.patch?full_index=1";
      hash = "sha256-T9tc4Krmp5jieKhbaTgI1CByWqSWy97HWcKMIXzr7MU=";
    })
  ];

  env.VERGEN_GIT_SHA = finalAttrs.src.tag;