Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
42 lines
1.2 KiB
Nix
42 lines
1.2 KiB
Nix
{
|
|
lib,
|
|
fetchurl,
|
|
appimageTools,
|
|
makeWrapper,
|
|
}:
|
|
let
|
|
pname = "starc";
|
|
version = "0.7.8";
|
|
src = fetchurl {
|
|
url = "https://github.com/story-apps/starc/releases/download/v${version}/starc-setup.AppImage";
|
|
hash = "sha256-thW7BzbY0eR72sa0eQT8iTo+K193k2C5b+R0zyXni9Y=";
|
|
};
|
|
|
|
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/
|
|
substituteInPlace $out/share/applications/starc.desktop \
|
|
--replace-fail "Icon=starc" "${''
|
|
Icon=dev.storyapps.starc
|
|
StartupWMClass=Story Architect''}"
|
|
cp -r ${appimageContents}/share/* $out/share/
|
|
|
|
wrapProgram $out/bin/starc \
|
|
--unset QT_PLUGIN_PATH
|
|
'';
|
|
|
|
meta = {
|
|
description = "Intuitive screenwriting app that streamlines the writing process";
|
|
homepage = "https://starc.app/";
|
|
mainProgram = "starc";
|
|
license = lib.licenses.unfree;
|
|
maintainers = with lib.maintainers; [ pancaek ];
|
|
platforms = [ "x86_64-linux" ];
|
|
};
|
|
}
|