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