-
-
Notifications
You must be signed in to change notification settings - Fork 413
/
flake.nix
59 lines (53 loc) · 1.61 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
{
description = "QOwnNotes dev flake";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
nixpkgs-qt5153.url = "github:nixos/nixpkgs/72bbea9db7d727ed044e60b5f5febc60a3c5c955";
# systems.url = "github:nix-systems/default";
};
outputs = {
self,
nixpkgs,
nixpkgs-qt5153,
}:
let
system = "x86_64-linux";
pkgs = nixpkgs.legacyPackages.${system};
pkgs-qt5153 = nixpkgs-qt5153.legacyPackages.${system};
in {
packages.${system} = {
qownnotes-qt6 = pkgs.qt6Packages.callPackage (import ./default.nix) { };
qownnotes-qt5 = pkgs.libsForQt5.callPackage (import ./build-systems/nix/default-qt5.nix) { };
qownnotes-qt5153 = pkgs-qt5153.libsForQt5.callPackage (import ./build-systems/nix/default-qt5.nix) { };
default = pkgs.qt6Packages.callPackage (import ./default.nix) { };
};
devShell.x86_64-linux =
with import nixpkgs {
system = "x86_64-linux";
};
mkShell {
nativeBuildInputs = with nixpkgs; with qt6; [
gnumake
crowdin-cli
cmakeWithGui
qmake
qttools
wrapQtAppsHook
pkg-config
# for ./build-systems/github/build-github-src.sh
coreutils
gh
];
buildInputs = with nixpkgs; with qt6; [
qtbase
qtwebsockets
qtdeclarative
qtsvg
botan2
];
shellHook = ''
echo "qmake: $(qmake --version)"
'';
};
};
}