2023-09-24 21:53:41 +00:00
|
|
|
{ lib, fetchurl, appimageTools, makeWrapper }:
|
2022-07-14 18:50:15 +00:00
|
|
|
|
|
|
|
let
|
|
|
|
pname = "framesh";
|
2024-03-12 11:24:09 +00:00
|
|
|
version = "0.6.9";
|
2022-07-14 18:50:15 +00:00
|
|
|
src = fetchurl {
|
|
|
|
url = "https://github.com/floating/frame/releases/download/v${version}/Frame-${version}.AppImage";
|
2024-03-12 11:24:09 +00:00
|
|
|
hash = "sha256-SsQIAg5DttvNJk1z+GJq4+e0Qa/j+VEKPV2bPA6+V8A=";
|
2022-07-14 18:50:15 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
appimageContents = appimageTools.extractType2 {
|
|
|
|
inherit pname version src;
|
|
|
|
};
|
|
|
|
in
|
|
|
|
appimageTools.wrapType2 {
|
|
|
|
inherit pname version src;
|
2024-09-25 20:01:28 +00:00
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
2022-07-14 18:50:15 +00:00
|
|
|
|
|
|
|
extraInstallCommands = ''
|
|
|
|
install -m 444 -D ${appimageContents}/frame.desktop $out/share/applications/frame.desktop
|
|
|
|
install -m 444 -D ${appimageContents}/frame.png \
|
|
|
|
$out/share/icons/hicolor/512x512/apps/frame.png
|
2023-09-24 21:53:41 +00:00
|
|
|
wrapProgram "$out/bin/${pname}" \
|
|
|
|
--add-flags "\''${NIXOS_OZONE_WL:+\''${WAYLAND_DISPLAY:+--ozone-platform=wayland --enable-features=WaylandWindowDecorations}}"
|
|
|
|
|
2022-07-14 18:50:15 +00:00
|
|
|
substituteInPlace $out/share/applications/frame.desktop \
|
|
|
|
--replace 'Exec=AppRun' 'Exec=${pname}'
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Native web3 interface that lets you sign data, securely manage accounts and transparently interact with dapps via web3 protocols like Ethereum and IPFS";
|
|
|
|
homepage = "https://frame.sh/";
|
|
|
|
downloadPage = "https://github.com/floating/frame/releases";
|
|
|
|
license = lib.licenses.gpl3Only;
|
|
|
|
platforms = [ "x86_64-linux" ];
|
|
|
|
maintainers = with lib.maintainers; [ nook ];
|
|
|
|
};
|
|
|
|
}
|