graphene-hardened-malloc: add updateScript (#360468)

* graphene-hardened-malloc: add updateScript

* graphene-hardened-malloc: 2024040900 -> 2024120400
This commit is contained in:
surfaceflinger
2024-12-05 18:13:03 -05:00
committed by GitHub
parent 979c64655b
commit 77fb5441bf
2 changed files with 13 additions and 2 deletions
@@ -9,13 +9,13 @@
stdenv.mkDerivation (finalAttrs: {
pname = "graphene-hardened-malloc";
version = "2024040900";
version = "2024120400";
src = fetchFromGitHub {
owner = "GrapheneOS";
repo = "hardened_malloc";
rev = finalAttrs.version;
hash = "sha256-1j7xzhuhK8ZRAJm9dJ95xiTIla7lh3LBiWc/+x/kjp0=";
hash = "sha256-VzP7JimAbFcp1HrSS3GArSRhxHaa1s49kFP22iDHt+8=";
};
nativeCheckInputs = [ python3 ];
@@ -47,6 +47,7 @@ stdenv.mkDerivation (finalAttrs: {
separateDebugInfo = true;
passthru = {
updateScript = ./update.sh;
ld-preload-tests = stdenv.mkDerivation {
name = "${finalAttrs.pname}-ld-preload-tests";
inherit (finalAttrs) src;
+10
View File
@@ -0,0 +1,10 @@
#!/usr/bin/env nix-shell
#!nix-shell --pure -i bash -p bash cacert curl common-updater-scripts
# shellcheck shell=bash
set -eu -o pipefail
host="https://releases.grapheneos.org"
read -ra metadata <<< "$(curl -s "$host/caiman-stable")"
version=${metadata[0]}
update-source-version graphene-hardened-malloc "$version"