-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathdefault.nix
More file actions
59 lines (54 loc) · 1.13 KB
/
default.nix
File metadata and controls
59 lines (54 loc) · 1.13 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
53
54
55
56
57
58
59
{
lib,
stdenv,
fetchFromGitHub,
pkgs ? import <nixpkgs> {},
}:
stdenv.mkDerivation rec {
pname = "lingmo-core";
version = "2.0.2";
src = fetchFromGitHub {
owner = "LingmoOS";
repo = "lingmo-core";
rev = version;
sha256 = "0v65zhm59xli70xgif3yrynqmmjy77dcsz4f975ggxa3ylj77p2g";
};
buildInputs = with pkgs; [
qt5-tools
qt5-quickcontrols2
cmake
extra-cmake-modules
kcoreaddons5
libxcursor
qt5-x11extras
qt5-graphicaleffects
kwindowsystem5
kidletime5
polkit
polkit-qt5
xorg-server-devel
xf86-input-libinput
xf86-input-synaptics
make
gcc
pkgconf
];
buildPhase = ''
echo "Compiling $pkgname"
mkdir -pv $out/build && cd $out/build
cmake -DCMAKE_INSTALL_PREFIX=/usr ..
make -j$(nproc) || return 1
'';
installPhase = ''
mkdir -pv $out
cd $out/build
make DESTDIR=$out install
'';
meta = with lib; {
description = "LingmoOS - Core";
homepage = "https://github.com/lingmoos/lingmo-core";
license = licenses.gpl3;
platforms = platforms.linux;
maintainers = with maintainers; [arkimium_76];
};
}