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
58 lines
1.5 KiB
Nix
58 lines
1.5 KiB
Nix
{
|
|
lib,
|
|
fetchFromGitHub,
|
|
buildDartApplication,
|
|
kdePackages,
|
|
sqlite,
|
|
}:
|
|
|
|
let
|
|
version = "1.8.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "Merrit";
|
|
repo = "vscode-runner";
|
|
rev = "v${version}";
|
|
hash = "sha256-ZzAQeSUFbHp2Bwiwsq8kgQqqNlr6hfXuz7PNAOSiBhU=";
|
|
};
|
|
in
|
|
buildDartApplication {
|
|
pname = "vscode-runner";
|
|
inherit version src;
|
|
|
|
vendorHash = "sha256-jS4jH00uxZIX81sZQIi+s42ofmXpD4/tPMRV2heaM2U=";
|
|
|
|
pubspecLock = lib.importJSON ./pubspec.lock.json;
|
|
|
|
dartEntryPoints = {
|
|
"bin/vscode_runner" = "bin/vscode_runner.dart";
|
|
};
|
|
|
|
buildInputs = [ sqlite ];
|
|
|
|
postInstall = ''
|
|
substituteInPlace ./package/codes.merritt.vscode_runner.service \
|
|
--replace-fail "Exec=" "Exec=$out/bin/vscode_runner"
|
|
install -D \
|
|
./package/codes.merritt.vscode_runner.service \
|
|
$out/share/dbus-1/services/codes.merritt.vscode_runner.service
|
|
|
|
install -D \
|
|
./package/plasma-runner-vscode_runner.desktop \
|
|
$out/share/krunner/dbusplugins/plasma-runner-vscode_runner.desktop
|
|
'';
|
|
|
|
passthru.updateScript = ./update.sh;
|
|
|
|
meta = {
|
|
description = "KRunner plugin for quickly opening recent VSCode workspaces";
|
|
homepage = "https://github.com/Merrit/vscode-runner";
|
|
changelog = "https://github.com/Merrit/vscode-runner/blob/${src.rev}/CHANGELOG.md";
|
|
license = lib.licenses.gpl3Only;
|
|
sourceProvenance = [ lib.sourceTypes.fromSource ];
|
|
maintainers = [ lib.maintainers.pinage404 ];
|
|
mainProgram = "vscode_runner";
|
|
inherit (kdePackages.krunner.meta) platforms;
|
|
};
|
|
}
|