nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 43 lines 1.4 kB view raw
1{ 2 lib, 3 fetchurl, 4 appimageTools, 5 makeWrapper, 6}: 7 8let 9 pname = "framesh"; 10 version = "0.6.11"; 11 src = fetchurl { 12 url = "https://github.com/floating/frame/releases/download/v${version}/Frame-${version}.AppImage"; 13 hash = "sha256-t60jsA4ojXF805OUrqIOdk8eP9PlwA/g0XxEBCahmb4="; 14 }; 15 16 appimageContents = appimageTools.extractType2 { 17 inherit pname version src; 18 }; 19in 20appimageTools.wrapType2 { 21 inherit pname version src; 22 nativeBuildInputs = [ makeWrapper ]; 23 24 extraInstallCommands = '' 25 install -m 444 -D ${appimageContents}/frame.desktop $out/share/applications/frame.desktop 26 install -m 444 -D ${appimageContents}/frame.png \ 27 $out/share/icons/hicolor/512x512/apps/frame.png 28 wrapProgram "$out/bin/${pname}" \ 29 --add-flags "\''${NIXOS_OZONE_WL:+\''${WAYLAND_DISPLAY:+--ozone-platform=wayland --enable-features=WaylandWindowDecorations --enable-wayland-ime=true}}" 30 31 substituteInPlace $out/share/applications/frame.desktop \ 32 --replace 'Exec=AppRun' 'Exec=${pname}' 33 ''; 34 35 meta = { 36 description = "Native web3 interface that lets you sign data, securely manage accounts and transparently interact with dapps via web3 protocols like Ethereum and IPFS"; 37 homepage = "https://frame.sh/"; 38 downloadPage = "https://github.com/floating/frame/releases"; 39 license = lib.licenses.gpl3Only; 40 platforms = [ "x86_64-linux" ]; 41 maintainers = with lib.maintainers; [ nook ]; 42 }; 43}