psst: unstable-2022-05-19 -> 2022-10-13

This commit is contained in:
Peter Hoeg 2022-11-16 16:16:46 +08:00
parent 9a6daf5586
commit 47709a986a

View file

@ -11,19 +11,20 @@ let
icon = "psst"; icon = "psst";
terminal = false; terminal = false;
}; };
in in
rustPlatform.buildRustPackage rec { rustPlatform.buildRustPackage rec {
pname = "psst"; pname = "psst";
version = "unstable-2022-05-19"; version = "unstable-2022-10-13";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "jpochyla"; owner = "jpochyla";
repo = pname; repo = pname;
rev = "e403609e0916fe664fb1f28c7a259d01fa69b0e9"; rev = "d70ed8104533dc15bc36b989ba8428872c9b578f";
sha256 = "sha256-hpAP/m9aJsfh9FtwLqaKFZllnCQn9OSYLWuNZakZJnk="; hash = "sha256-ZKhHN0ruLb6ZVKkrKv/YawRsVop6SP1QF/nrtkmA8P8=";
}; };
cargoSha256 = "sha256-gQ0iI2wTS5n5pItmQCmFXDs5L8nA2w5ZrZyZtpMlUro="; cargoSha256 = "sha256-TDxoRWQAzrgPElEEDNYkk3XX2i+LnNLMuY/J3pb3Xlk=";
# specify the subdirectory of the binary crate to build from the workspace # specify the subdirectory of the binary crate to build from the workspace
buildAndTestSubdir = "psst-gui"; buildAndTestSubdir = "psst-gui";
@ -41,10 +42,8 @@ rustPlatform.buildRustPackage rec {
]; ];
postInstall = '' postInstall = ''
mkdir -pv $out/share/icons/hicolor/512x512/apps
install -Dm444 psst-gui/assets/logo_512.png $out/share/icons/hicolor/512x512/apps/${pname}.png install -Dm444 psst-gui/assets/logo_512.png $out/share/icons/hicolor/512x512/apps/${pname}.png
mkdir -pv $out/share/applications install -Dm444 -t $out/share/applications ${desktopItem}/share/applications/*
ln -s ${desktopItem}/share/applications/* $out/share/applications
''; '';
meta = with lib; { meta = with lib; {