lol
1{ stdenv, fetchFromGitHub, cmake, boost, qt4 ? null, qtbase ? null }:
2
3# Only one qt
4assert qt4 != null -> qtbase == null;
5assert qtbase != null -> qt4 == null;
6
7stdenv.mkDerivation rec {
8 name = "snowman-${version}";
9 version = "2017-07-22";
10
11 src = fetchFromGitHub {
12 owner = "yegord";
13 repo = "snowman";
14 rev = "6c4d9cceb56bf2fd0f650313131a2240579d1bea";
15 sha256 = "1d0abh0fg637jksk7nl4yl54b4cadinj93qqvsm138zyx7h57xqf";
16 };
17
18 nativeBuildInputs = [ cmake ];
19
20 buildInputs = [ boost qt4 qtbase ];
21
22 postUnpack = ''
23 export sourceRoot=$sourceRoot/src
24 '';
25
26 enableParallelBuilding = true;
27
28 meta = with stdenv.lib; {
29 description = "Native code to C/C++ decompiler";
30 homepage = "http://derevenets.com/";
31
32 # https://github.com/yegord/snowman/blob/master/doc/licenses.asciidoc
33 license = licenses.gpl3Plus;
34 maintainers = with maintainers; [ dtzWill ];
35 platforms = platforms.all;
36 };
37}