-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdefault.nix
41 lines (37 loc) · 1021 Bytes
/
default.nix
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
39
40
41
{
pkgs ? import <nixpkgs> { },
...
}:
pkgs.callPackage (
{
lib,
rustPlatform,
versionCheckHook,
cosmic-comp,
}:
let
version = "1.1.0";
in
rustPlatform.buildRustPackage {
pname = "cosmic-ctl";
inherit version;
src = builtins.path {
name = "cosmic-ctl-source";
path = ./.;
};
useFetchCargoVendor = true;
cargoHash = "sha256-EReo2hkBaIO1YOBx4D9rQSXlx+3NK5VQtj59jfZZI/0=";
doInstallCheck = true;
nativeInstallCheckInputs = [ versionCheckHook ];
versionCheckProgram = "${placeholder "out"}/bin/cosmic-ctl";
meta = {
description = "CLI for COSMIC Desktop configuration management";
changelog = "https://github.com/cosmic-utils/cosmic-ctl/releases/tag/v${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;
};
}
) { }