2018-01-14 21:56:17 +01:00
|
|
|
{ stdenv, fetchFromGitHub, cmake, boost, qtbase }:
|
2017-07-25 16:46:55 +02:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "snowman-${version}";
|
2018-01-06 22:09:01 +01:00
|
|
|
version = "2017-11-19";
|
2017-07-25 16:46:55 +02:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "yegord";
|
|
|
|
repo = "snowman";
|
2018-01-06 22:09:01 +01:00
|
|
|
rev = "d03c2d6ffbf262c0011584df59d6bd69c020e08e";
|
|
|
|
sha256 = "0bzqp3zc100dzvybf57bj4dvnybvds0lmn1w2xjb19wkzm9liskn";
|
2017-07-25 16:46:55 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ cmake ];
|
|
|
|
|
2018-01-14 21:56:17 +01:00
|
|
|
buildInputs = [ boost qtbase ];
|
2017-07-25 16:46:55 +02:00
|
|
|
|
|
|
|
postUnpack = ''
|
|
|
|
export sourceRoot=$sourceRoot/src
|
|
|
|
'';
|
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Native code to C/C++ decompiler";
|
|
|
|
homepage = "http://derevenets.com/";
|
|
|
|
|
|
|
|
# https://github.com/yegord/snowman/blob/master/doc/licenses.asciidoc
|
|
|
|
license = licenses.gpl3Plus;
|
|
|
|
maintainers = with maintainers; [ dtzWill ];
|
|
|
|
platforms = platforms.all;
|
|
|
|
};
|
|
|
|
}
|