Merge pull request #257147 from andresilva/framesh-0.6.8
framesh: 0.6.7 -> 0.6.8
This commit is contained in:
commit
c2de65438c
|
@ -1,11 +1,11 @@
|
||||||
{ lib, fetchurl, appimageTools }:
|
{ lib, fetchurl, appimageTools, makeWrapper }:
|
||||||
|
|
||||||
let
|
let
|
||||||
pname = "framesh";
|
pname = "framesh";
|
||||||
version = "0.6.7";
|
version = "0.6.8";
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "https://github.com/floating/frame/releases/download/v${version}/Frame-${version}.AppImage";
|
url = "https://github.com/floating/frame/releases/download/v${version}/Frame-${version}.AppImage";
|
||||||
sha256 = "sha256-yPNgrC9ZQcl1gCStMXMbZvk15jZylM2NgKM9H3XcJVQ=";
|
hash = "sha256-qTbT1g+9hypBUxRMZ/Eat5OGb1y6yJlxQ6iJzfQH8G4=";
|
||||||
};
|
};
|
||||||
|
|
||||||
appimageContents = appimageTools.extractType2 {
|
appimageContents = appimageTools.extractType2 {
|
||||||
|
@ -20,6 +20,11 @@ appimageTools.wrapType2 {
|
||||||
install -m 444 -D ${appimageContents}/frame.desktop $out/share/applications/frame.desktop
|
install -m 444 -D ${appimageContents}/frame.desktop $out/share/applications/frame.desktop
|
||||||
install -m 444 -D ${appimageContents}/frame.png \
|
install -m 444 -D ${appimageContents}/frame.png \
|
||||||
$out/share/icons/hicolor/512x512/apps/frame.png
|
$out/share/icons/hicolor/512x512/apps/frame.png
|
||||||
|
|
||||||
|
source "${makeWrapper}/nix-support/setup-hook"
|
||||||
|
wrapProgram "$out/bin/${pname}" \
|
||||||
|
--add-flags "\''${NIXOS_OZONE_WL:+\''${WAYLAND_DISPLAY:+--ozone-platform=wayland --enable-features=WaylandWindowDecorations}}"
|
||||||
|
|
||||||
substituteInPlace $out/share/applications/frame.desktop \
|
substituteInPlace $out/share/applications/frame.desktop \
|
||||||
--replace 'Exec=AppRun' 'Exec=${pname}'
|
--replace 'Exec=AppRun' 'Exec=${pname}'
|
||||||
'';
|
'';
|
||||||
|
|
Loading…
Reference in a new issue