-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdefault.nix
67 lines (59 loc) · 1.04 KB
/
default.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
60
61
62
63
64
65
66
67
{ lib
, pkgs ? import <nixpkgs> {}
, stdenv ? pkgs.stdenv
, cmake
, cmake-utils
, git
, texlive
, cli11
, pugixml
}:
with pkgs;
stdenv.mkDerivation {
name = "openemsh";
version = "0.0.0";
src = lib.nix-filter {
root = ./.;
include = [
"cmake"
"src"
"doc"
"icon"
"test"
"CMakeLists.txt"
"CMakePresets.json"
];
};
nativeBuildInputs = [
cmake
cmake-utils
git
(texlive.combine {
inherit (texlive) scheme-small standalone pgfplots;
})
];
buildInputs = [
cli11
(pugixml.override { shared = true; })
];
cmakeFlags = [
"-DCPM_DISABLE=ON"
];
shellHook = ''
unset NIX_HARDENING_ENABLE
export CPM_DISABLE=ON
'';
meta = {
homepage = "https://github.com/Open-RFlab/openemsh";
description = "OpenEMS mesher draft";
license = lib.licenses.gpl3;
maintainers = [
{
email = "[email protected]";
github = "thomaslepoix";
githubId = 26417323;
name = "Thomas Lepoix";
}
];
};
}