overlays: update signal-desktop, add element-desktop

use newest ble.sh version
This commit is contained in:
teutat3s 2023-06-20 23:32:13 +02:00
parent 2d25aeb2a7
commit 3aca75e1f8
Signed by: teutat3s
GPG key ID: 4FA1D3FA524F22C1
3 changed files with 41 additions and 6 deletions

View file

@ -1,10 +1,40 @@
final: prev: { final: prev: {
blesh = prev.blesh.overrideAttrs (oldAttrs: rec { blesh = prev.blesh.overrideAttrs (oldAttrs: rec {
#inherit (prev.sources.blesh-nvfetcher) version src; #inherit (prev.sources.blesh-nvfetcher) version src;
version = "0.4.0-devel3"; version = "0.4.0-devel4";
src = prev.fetchzip { src = prev.fetchFromGitHub {
url = "https://github.com/akinomyoga/ble.sh/releases/download/v${version}/ble-${version}.tar.xz"; owner = "akinomyoga";
sha256 = "sha256-kGLp8RaInYSrJEi3h5kWEOMAbZV/gEPFUjOLgBuMhCI="; repo = "ble.sh";
rev = "f16c0d807c8e1fe26fa5d990b561829382cbdc72";
hash = "sha256-+tcM1z9uD7WXA7CfHmTbcPRcZfmXZ+Y7y6Bj4QA3f+4=";
fetchSubmodules = true;
leaveDotGit = true;
}; };
dontBuild = false;
buildInputs = [prev.git];
patchPhase = ''
substituteInPlace GNUmakefile \
--replace "git submodule update --init --recursive" ""
'';
nativeCheckInputs = oldAttrs.nativeCheckInputs ++ [prev.busybox];
installPhase = ''
runHook preInstall
mkdir -p "$out/share/blesh/lib"
cat <<EOF >"$out/share/blesh/lib/_package.sh"
_ble_base_package_type=nix
function ble/base/package:nix/update {
echo "Ble.sh is installed by Nix. You can update it there." >&2
return 1
}
EOF
make install INSDIR=$out/share/blesh
runHook postInstall
'';
}); });
} }

View file

@ -0,0 +1,5 @@
final: prev: {
element-desktop = prev.element-desktop.override {
electron = prev.electron_24;
};
}

View file

@ -2,8 +2,8 @@ final: prev: {
signal-desktop = prev.signal-desktop.overrideAttrs (oldAttrs: rec { signal-desktop = prev.signal-desktop.overrideAttrs (oldAttrs: rec {
pname = "signal-desktop"; pname = "signal-desktop";
dir = "Signal"; dir = "Signal";
version = "6.19.0"; version = "6.21.0";
hash = "sha256-D54A9z5+Y3ns363Zl8IChnykEBhOz8aJCgTCQIjq/fc="; hash = "sha256-MDjh2slEmGCMn0Q4YsIzVQO2I7ZE5XUJX5qH4OYFFxw=";
src = prev.fetchurl { src = prev.fetchurl {
url = "https://updates.signal.org/desktop/apt/pool/main/s/${pname}/${pname}_${version}_amd64.deb"; url = "https://updates.signal.org/desktop/apt/pool/main/s/${pname}/${pname}_${version}_amd64.deb";