forked from flameshot-org/flameshot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathflake.nix
39 lines (34 loc) · 1.22 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
{
description = "Flameshot flake build";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/22.11";
utils.url = "github:numtide/flake-utils";
utils.inputs.nixpkgs.follows = "nixpkgs";
};
outputs = { self, nixpkgs, ... }@inputs: inputs.utils.lib.eachSystem [
"x86_64-linux" "i686-linux" "aarch64-linux" "x86_64-darwin" "aarch64-darwin"
] (system: let pkgs = import nixpkgs {
inherit system;
};
in {
devShell = pkgs.mkShell rec {
name = "flameshot";
packages = with pkgs; [
# Development Tools
cmake
cmakeCurses
libsForQt5.qt5.qttools
qt5.wrapQtAppsHook
# Dependencies
libsForQt5.qt5.qtsvg
libsForQt5.qt5.qtbase
];
};
defaultPackage = pkgs.callPackage ./default.nix {
qtbase = pkgs.libsForQt5.qt5.qtbase;
qttools = pkgs.libsForQt5.qt5.qttools;
qtsvg = pkgs.libsForQt5.qt5.qtsvg;
wrapQtAppsHook = pkgs.qt5.wrapQtAppsHook;
};
});
}