@@ -0,0 +1,50 @@
1+{ stdenv
2+, mkDerivation
3+, fetchFromGitHub
4+, cmake
5+, csxcad
6+, tinyxml
7+, vtkWithQt5
8+, wrapQtAppsHook
9+, qtbase
10+}:
11+
12+mkDerivation {
13+ pname = "qcsxcad";
14+ version = "unstable-2020-01-04";
15+
16+ src = fetchFromGitHub {
17+ owner = "thliebig";
18+ repo = "QCSXCAD";
19+ rev = "0dabbaf2bc1190adec300871cf309791af842c8e";
20+ sha256 = "11kbh0mxbdfh7s5azqin3i2alic5ihmdfj0jwgnrhlpjk4cbf9rn";
21+ };
22+
23+ nativeBuildInputs = [
24+ cmake
25+ wrapQtAppsHook
26+ ];
27+
28+ cmakeFlags = [
29+ "-DCMAKE_INSTALL_PREFIX=${placeholder "out"}"
30+ "-DCSXCAD_ROOT_DIR=${csxcad}"
31+ "-DENABLE_RPATH=OFF"
32+ ];
33+
34+ buildInputs = [
35+ csxcad
36+ tinyxml
37+ vtkWithQt5
38+ qtbase
39+ ];
40+
41+ enableParallelBuilding = true;
42+
43+ meta = with stdenv.lib; {
44+ description = "Qt library for CSXCAD";
45+ homepage = "https://github.com/thliebig/QCSXCAD";
46+ license = licenses.gpl3;
47+ maintainers = with maintainers; [ matthuszagh ];
48+ platforms = platforms.linux;
49+ };
50+}