mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-08-26 10:14:48 +00:00
starc: use finalAttrs (#554149)
This commit is contained in:
@@ -4,27 +4,24 @@
|
||||
appimageTools,
|
||||
makeWrapper,
|
||||
}:
|
||||
let
|
||||
appimageTools.wrapType2 (finalAttrs: {
|
||||
pname = "starc";
|
||||
version = "0.8.2";
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://github.com/story-apps/starc/releases/download/v${version}/starc-setup.AppImage";
|
||||
url = "https://github.com/story-apps/starc/releases/download/v${finalAttrs.version}/starc-setup.AppImage";
|
||||
hash = "sha256-7uwc4gD+AlbYGMffaWj3v2Zt2x6P5edPXY3BsznBNdQ=";
|
||||
};
|
||||
|
||||
appimageContents = appimageTools.extract { inherit pname version src; };
|
||||
in
|
||||
appimageTools.wrapType2 {
|
||||
inherit pname version src;
|
||||
nativeBuildInputs = [ makeWrapper ];
|
||||
extraInstallCommands = ''
|
||||
# Fixup desktop item icons
|
||||
install -D ${appimageContents}/starc.desktop -t $out/share/applications/
|
||||
install -D ${finalAttrs.contents}/starc.desktop -t $out/share/applications/
|
||||
substituteInPlace $out/share/applications/starc.desktop \
|
||||
--replace-fail "Icon=starc" "${''
|
||||
Icon=dev.storyapps.starc
|
||||
StartupWMClass=Story Architect''}"
|
||||
cp -r ${appimageContents}/share/* $out/share/
|
||||
cp -r ${finalAttrs.contents}/share/* $out/share/
|
||||
|
||||
wrapProgram $out/bin/starc \
|
||||
--unset QT_PLUGIN_PATH
|
||||
@@ -38,4 +35,4 @@ appimageTools.wrapType2 {
|
||||
maintainers = with lib.maintainers; [ pancaek ];
|
||||
platforms = [ "x86_64-linux" ];
|
||||
};
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user