-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathdefault.nix
More file actions
53 lines (48 loc) · 1.04 KB
/
default.nix
File metadata and controls
53 lines (48 loc) · 1.04 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
{
lib,
stdenv,
fetchFromGitHub,
pkgs ? import <nixpkgs> {},
}:
stdenv.mkDerivation rec {
pname = "lingmo-terminal";
version = "2.0.0";
src = fetchFromGitHub {
owner = "LingmoOS";
repo = "lingmo-terminal";
rev = version;
sha256 = "18zkllkj9s5s5a27sa8n4sq2cq18kx0mk09p982zim6d4frk5nq2";
};
buildInputs = with pkgs; [
qt5-base
qt5-declarative
qt5-tools
qt5-quickcontrols2
qt5-graphicaleffects
lingmoui
cmake
extra-cmake-modules
qt5-x11extras
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 - Terminal";
homepage = "https://github.com/lingmoos/lingmo-terminal";
license = licenses.gpl3;
platforms = platforms.linux;
maintainers = with maintainers; [ arkimium_76 ];
};
}