diff --git a/flake.nix b/flake.nix index c997f6918..187496440 100644 --- a/flake.nix +++ b/flake.nix @@ -53,12 +53,10 @@ # for raspberry pi: allow building u-boot for rpi 4{,00} # TODO: remove after upstreamed: https://github.com/NixOS/nixpkgs/pull/176018 ./nixpatches/02-rpi4-uboot.patch - # TODO: remove after upstreamed: https://github.com/NixOS/nixpkgs/pull/176476 - ./nixpatches/03-whalebird-4.6.0.patch # alternative to https://github.com/NixOS/nixpkgs/pull/173200 ./nixpatches/04-dart-2.7.0.patch # TODO: remove after upstreamed: https://github.com/NixOS/nixpkgs/pull/176476 - ./nixpatches/05-whalebird-aarch64.patch + ./nixpatches/06-whalebird-4.6.0-aarch64.patch ]; }; nixosSystem = import (patchedPkgs + "/nixos/lib/eval-config.nix"); diff --git a/nixpatches/03-whalebird-4.6.0.patch b/nixpatches/03-whalebird-4.6.0.patch deleted file mode 100644 index 4d087f1e9..000000000 --- a/nixpatches/03-whalebird-4.6.0.patch +++ /dev/null @@ -1,27 +0,0 @@ -diff --git a/pkgs/applications/misc/whalebird/default.nix b/pkgs/applications/misc/whalebird/default.nix -index 9b8a7f0a348..7170a63ac7f 100644 ---- a/pkgs/applications/misc/whalebird/default.nix -+++ b/pkgs/applications/misc/whalebird/default.nix -@@ -3,11 +3,11 @@ - - stdenv.mkDerivation rec { - pname = "whalebird"; -- version = "4.5.4"; -+ version = "4.6.0"; - - src = fetchurl { - url = "https://github.com/h3poteto/whalebird-desktop/releases/download/${version}/Whalebird-${version}-linux-x64.deb"; -- sha256 = "048c2hpnlzjli8r1lcm7hd32qfsq4p9vkimrgc049yw9f15ndjpr"; -+ sha256 = "d8042eb21e4320771782a1835a591252894ad657eec46248c807d5a772e1938e"; - }; - - nativeBuildInputs = [ -@@ -31,7 +31,7 @@ stdenv.mkDerivation rec { - # Necessary steps to find the tray icon - asar extract opt/Whalebird/resources/app.asar "$TMP/work" - substituteInPlace $TMP/work/dist/electron/main.js \ -- --replace "jo,\"tray_icon.png\"" "\"$out/opt/Whalebird/resources/build/icons/tray_icon.png\"" -+ --replace "Do,\"tray_icon.png\"" "\"$out/opt/Whalebird/resources/build/icons/tray_icon.png\"" - asar pack --unpack='{*.node,*.ftz,rect-overlay}' "$TMP/work" opt/Whalebird/resources/app.asar - - runHook postBuild diff --git a/nixpatches/05-whalebird-aarch64.patch b/nixpatches/06-whalebird-4.6.0-aarch64.patch similarity index 82% rename from nixpatches/05-whalebird-aarch64.patch rename to nixpatches/06-whalebird-4.6.0-aarch64.patch index 7bf86d648..ca5d93e7d 100644 --- a/nixpatches/05-whalebird-aarch64.patch +++ b/nixpatches/06-whalebird-4.6.0-aarch64.patch @@ -1,5 +1,5 @@ diff --git a/pkgs/applications/misc/whalebird/default.nix b/pkgs/applications/misc/whalebird/default.nix -index 7170a63ac7f..dcd88fb9a8b 100644 +index 9b8a7f0a348..dcd88fb9a8b 100644 --- a/pkgs/applications/misc/whalebird/default.nix +++ b/pkgs/applications/misc/whalebird/default.nix @@ -1,17 +1,35 @@ @@ -19,11 +19,12 @@ index 7170a63ac7f..dcd88fb9a8b 100644 +in stdenv.mkDerivation rec { pname = "whalebird"; - version = "4.6.0"; +- version = "4.5.4"; ++ version = "4.6.0"; - src = fetchurl { - url = "https://github.com/h3poteto/whalebird-desktop/releases/download/${version}/Whalebird-${version}-linux-x64.deb"; -- sha256 = "d8042eb21e4320771782a1835a591252894ad657eec46248c807d5a772e1938e"; +- sha256 = "048c2hpnlzjli8r1lcm7hd32qfsq4p9vkimrgc049yw9f15ndjpr"; - }; + src = let + downloads = "https://github.com/h3poteto/whalebird-desktop/releases/download/${version}"; @@ -59,6 +60,15 @@ index 7170a63ac7f..dcd88fb9a8b 100644 ''; buildPhase = '' +@@ -31,7 +50,7 @@ stdenv.mkDerivation rec { + # Necessary steps to find the tray icon + asar extract opt/Whalebird/resources/app.asar "$TMP/work" + substituteInPlace $TMP/work/dist/electron/main.js \ +- --replace "jo,\"tray_icon.png\"" "\"$out/opt/Whalebird/resources/build/icons/tray_icon.png\"" ++ --replace "Do,\"tray_icon.png\"" "\"$out/opt/Whalebird/resources/build/icons/tray_icon.png\"" + asar pack --unpack='{*.node,*.ftz,rect-overlay}' "$TMP/work" opt/Whalebird/resources/app.asar + + runHook postBuild @@ -41,12 +60,23 @@ stdenv.mkDerivation rec { runHook preInstall