blob: dfc2d23e498789fb114a722511f611ed1add06d4 (
about) (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
{
lib,
rustPlatform,
fetchFromGitHub,
versionCheckHook,
nix-update-script,
cosmic-comp,
}:
rustPlatform.buildRustPackage (finalAttrs: {
pname = "cosmic-ext-ctl";
version = "1.4.0";
src = fetchFromGitHub {
owner = "cosmic-utils";
repo = "cosmic-ctl";
tag = "v${finalAttrs.version}";
hash = "sha256-4UbmzBKxJwpyzucPRguQV1078961goiQlhtDjOGz1kA=";
};
useFetchCargoVendor = true;
cargoHash = "sha256-53lpHzHQ6SoZzd+h6O0NvSJHsPgbW0/kqnDrM5D6SWQ=";
doInstallCheck = true;
nativeInstallCheckInputs = [ versionCheckHook ];
versionCheckProgram = "${placeholder "out"}/bin/cosmic-ctl";
passthru.updateScript = nix-update-script { };
meta = {
description = "CLI for COSMIC Desktop configuration management";
changelog = "https://github.com/cosmic-utils/cosmic-ctl/releases/tag/v${finalAttrs.version}";
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;
};
})
|