-
Notifications
You must be signed in to change notification settings - Fork 7
/
flake.nix
62 lines (52 loc) · 1.75 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
{
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-23.05";
flake-utils.url = "github:numtide/flake-utils";
tinycmmc.url = "github:grumbel/tinycmmc";
tinycmmc.inputs.nixpkgs.follows = "nixpkgs";
tinycmmc.inputs.flake-utils.follows = "flake-utils";
logmich.url = "github:logmich/logmich";
logmich.inputs.nixpkgs.follows = "nixpkgs";
logmich.inputs.tinycmmc.follows = "tinycmmc";
strutcpp.url = "github:grumbel/strutcpp";
strutcpp.inputs.nixpkgs.follows = "nixpkgs";
strutcpp.inputs.tinycmmc.follows = "tinycmmc";
uinpp.url = "github:grumbel/uinpp";
uinpp.inputs.nixpkgs.follows = "nixpkgs";
uinpp.inputs.flake-utils.follows = "flake-utils";
uinpp.inputs.tinycmmc.follows = "tinycmmc";
uinpp.inputs.logmich.follows = "logmich";
uinpp.inputs.strutcpp.follows = "strutcpp";
};
outputs = { self, nixpkgs, flake-utils, tinycmmc, logmich, strutcpp, uinpp }:
flake-utils.lib.eachDefaultSystem (system:
let
pkgs = nixpkgs.legacyPackages.${system};
in {
packages = rec {
default = udraw;
udraw = pkgs.stdenv.mkDerivation {
pname = "udraw";
version = "0.1.0";
src = nixpkgs.lib.cleanSource ./.;
nativeBuildInputs = with pkgs; [
cmake
pkg-config
];
buildInputs = with pkgs; [
libusb
fmt_8
] ++ [
tinycmmc.packages.${system}.default
logmich.packages.${system}.default
uinpp.packages.${system}.default
strutcpp.packages.${system}.default
];
meta = {
mainProgram = "udraw-driver";
};
};
};
}
);
}