Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

38 lines
1.0 KiB
Nix
Raw Permalink Normal View History

2024-12-15 23:46:54 -03:00
{
lib,
rustPlatform,
fetchFromGitHub,
versionCheckHook,
nix-update-script,
cosmic-comp,
}:
2025-04-12 10:39:33 -03:00
rustPlatform.buildRustPackage (finalAttrs: {
2024-12-15 23:46:54 -03:00
pname = "cosmic-ext-ctl";
version = "1.5.0";
2024-12-15 23:46:54 -03:00
src = fetchFromGitHub {
owner = "cosmic-utils";
repo = "cosmic-ctl";
2025-04-12 10:39:33 -03:00
tag = "v${finalAttrs.version}";
hash = "sha256-URqNhkC1XrXYxr14K6sT3TLso38eWLMA+WplBdj52Vg=";
2024-12-15 23:46:54 -03:00
};
cargoHash = "sha256-OL1LqOAyIFFCGIp3ySdvEXJ1ECp9DgC/8mfAPo/E7k4=";
2024-12-15 23:46:54 -03:00
doInstallCheck = true;
nativeInstallCheckInputs = [ versionCheckHook ];
versionCheckProgram = "${placeholder "out"}/bin/cosmic-ctl";
passthru.updateScript = nix-update-script { };
meta = {
description = "CLI for COSMIC Desktop configuration management";
2025-04-12 10:39:33 -03:00
changelog = "https://github.com/cosmic-utils/cosmic-ctl/releases/tag/v${finalAttrs.version}";
2024-12-15 23:46:54 -03:00
homepage = "https://github.com/cosmic-utils/cosmic-ctl";
license = lib.licenses.gpl3Only;
maintainers = with lib.maintainers; [ HeitorAugustoLN ];
mainProgram = "cosmic-ctl";
inherit (cosmic-comp.meta) platforms;
};
2025-04-12 10:39:33 -03:00
})