-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathflake.nix
More file actions
52 lines (45 loc) · 1.59 KB
/
Copy pathflake.nix
File metadata and controls
52 lines (45 loc) · 1.59 KB
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
{
description = "Linux Device Manager – a Qt6 recreation of the Windows Device Manager";
inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
outputs = { self, nixpkgs }:
let
supportedSystems = [ "x86_64-linux" "aarch64-linux" ];
forAllSystems = nixpkgs.lib.genAttrs supportedSystems;
in {
packages = forAllSystems (system:
let pkgs = nixpkgs.legacyPackages.${system}; in {
default = pkgs.stdenv.mkDerivation {
pname = "linux-devmgmt";
version = "1.1";
src = ./.;
nativeBuildInputs = with pkgs; [ cmake qt6.wrapQtAppsHook ];
buildInputs = with pkgs; [ qt6.qtbase ];
cmakeFlags = [ "-DCMAKE_INSTALL_PREFIX=${placeholder "out"}" ];
qtWrapperArgs = [
"--prefix" "PATH" ":" (pkgs.lib.makeBinPath [
pkgs.kmod
pkgs.pciutils
pkgs.bluez
])
"--set" "HWDATA_DIR" "${pkgs.hwdata}/share/hwdata"
"--set" "LIBDRM_DIR" "${pkgs.libdrm}/share/libdrm"
];
meta = with pkgs.lib; {
description = "Windows Device Manager clone for Linux";
license = licenses.gpl3Only;
platforms = [ "x86_64-linux" "aarch64-linux" ];
mainProgram = "devmgmt";
};
};
}
);
devShells = forAllSystems (system:
let pkgs = nixpkgs.legacyPackages.${system}; in {
default = pkgs.mkShell {
inputsFrom = [ self.packages.${system}.default ];
packages = with pkgs; [ gdb qtcreator ];
};
}
);
};
}