forked from silicon-heaven/shvspy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
flake.nix
64 lines (61 loc) · 1.55 KB
/
flake.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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
{
description = "Silicon Heaven Spy Flake";
outputs = {
self,
flake-utils,
nixpkgs,
}:
with builtins;
with flake-utils.lib;
with nixpkgs.lib; let
packages = pkgs:
with pkgs;
with qt6Packages; rec {
shvspy = stdenv.mkDerivation {
name = "shvspy";
src = builtins.path {
path = ./.;
filter = path: type: ! hasSuffix ".nix" path;
};
buildInputs = [
wrapQtAppsHook
qtbase
qtserialport
qtwebsockets
qtsvg
doctest
openldap
];
nativeBuildInputs = [
cmake
copyDesktopItems
];
desktopItems = [
(makeDesktopItem {
name = "shvspy";
exec = "shvspy";
desktopName = "SHVSpy";
categories = ["Network" "RemoteAccess"];
})
];
};
};
in
{
overlays = {
shvspy = final: prev: packages (id prev);
default = self.overlays.shvspy;
};
}
// eachDefaultSystem (system: let
pkgs = nixpkgs.legacyPackages.${system}.extend self.overlays.default;
in {
packages = filterPackages system rec {
inherit (pkgs) shvspy;
default = shvspy;
};
legacyPackages = pkgs;
checks.default = self.packages.${system}.default;
formatter = pkgs.alejandra;
});
}