From 6d351f9ad77b71b09f2b45edc08730847956496d Mon Sep 17 00:00:00 2001 From: Timon Date: Sun, 30 Aug 2026 17:43:42 +0000 Subject: [PATCH] Update Nix flake --- .nix/pkgs/graphite-cef.nix | 22 ++++++++++++---------- flake.lock | 19 ++++++++++--------- 2 files changed, 22 insertions(+), 19 deletions(-) diff --git a/.nix/pkgs/graphite-cef.nix b/.nix/pkgs/graphite-cef.nix index 732ffd0943..6f612198ef 100644 --- a/.nix/pkgs/graphite-cef.nix +++ b/.nix/pkgs/graphite-cef.nix @@ -4,7 +4,7 @@ let version = "149.0.5+g6770623+chromium-149.0.7827.197"; hashes = { aarch64-linux = "sha256-cBAvcvs1rAg5EKJkCt81RZYupCWpUNIC/nLt3PJow7Q="; - x86_64-linux = "sha256-OPGMBJmvvLiLdBDniBQwx7LmTGGI59AcesJdILSeqcs="; + x86_64-linux = "sha256-OPGMBJmvvLiLdBDniBQwx7LmTGGI59AcesJdILSeqcs="; }; selectSystem = @@ -12,17 +12,19 @@ let attrs.${pkgs.stdenv.hostPlatform.system} or (throw "Unsupported system ${pkgs.stdenv.hostPlatform.system}"); + url = "https://cef-builds.spotifycdn.com/cef_binary_${version}_${ + selectSystem { + aarch64-linux = "linuxarm64"; + x86_64-linux = "linux64"; + } + }_minimal.tar.bz2"; + src = pkgs.fetchurl { - url = "https://cef-builds.spotifycdn.com/cef_binary_${version}_${ - selectSystem { - aarch64-linux = "linuxarm64"; - x86_64-linux = "linux64"; - } - }_minimal.tar.bz2"; + inherit url; hash = selectSystem hashes; }; in -pkgs.cef-binary.overrideAttrs (finalAttrs: { +pkgs.cef-binary.overrideAttrs { version = builtins.head (builtins.split "\\+" version); inherit src; postInstall = '' @@ -38,9 +40,9 @@ pkgs.cef-binary.overrideAttrs (finalAttrs: { echo '${ builtins.toJSON { type = "minimal"; - name = builtins.baseNameOf finalAttrs.src.url; + name = builtins.baseNameOf url; sha1 = ""; } }' > $out/archive.json ''; -}) +} diff --git a/flake.lock b/flake.lock index d0870633f0..9e8ffd97d6 100644 --- a/flake.lock +++ b/flake.lock @@ -2,11 +2,11 @@ "nodes": { "crane": { "locked": { - "lastModified": 1781825982, - "narHash": "sha256-SlXKwIRIhrOSAcTjCB3ftPLzJWZStQIPS7J1FlZPnKk=", + "lastModified": 1787326676, + "narHash": "sha256-lWhBbBvC05/xwivKBBiM2YNizpmgqCgyOIzomvRuwxs=", "owner": "ipetkov", "repo": "crane", - "rev": "469fd08d0bcf6926321fa973c6777fbc87785dd7", + "rev": "692f7e9ef2ece8125b466f66f2af532b3edaed0d", "type": "github" }, "original": { @@ -17,11 +17,11 @@ }, "nixpkgs": { "locked": { - "lastModified": 1782723713, - "narHash": "sha256-oPXCU/SSUokcGaJREHibG1CBX3+s/W7orDWQOZDsEeQ=", + "lastModified": 1787900134, + "narHash": "sha256-VYXO0XZlgj06dxJZRhrD3WoSsvq/c7+/Akyoa22pefw=", "owner": "nixos", "repo": "nixpkgs", - "rev": "b5aa0fbd538984f6e3d201be0005b4463d8b09f8", + "rev": "83199d0d373dd3ac2b9a1996b1d0263f76ab7a4c", "type": "github" }, "original": { @@ -45,11 +45,11 @@ ] }, "locked": { - "lastModified": 1782789458, - "narHash": "sha256-CR55gKCChD9ffN1Ag5az20Z3RD4tylHlcM1SSohkMA8=", + "lastModified": 1788077403, + "narHash": "sha256-c20YZQKzQ27qC6Wh729fWRTpI7oV4+7Ur4icKssD4Wc=", "owner": "oxalica", "repo": "rust-overlay", - "rev": "067959ef838c440558ca519cf08ca87f43c3db3a", + "rev": "89e26eeaafa88a2ede4778734acc794ff0299beb", "type": "github" }, "original": { @@ -62,3 +62,4 @@ "root": "root", "version": 7 } +