diff options
author | Will Dietz <w@wdtz.org> | 2017-07-25 09:46:55 -0500 |
---|---|---|
committer | Franz Pletz <fpletz@fnordicwalking.de> | 2017-08-30 02:30:19 +0200 |
commit | 5543e992f1d66aa4fb4e7ec19597bbe8b8ac18a8 (patch) | |
tree | 14ece75ac90a089b0fa736f705c8dd7681fb9db8 /pkgs/development/tools/analysis/snowman/default.nix | |
parent | d4b0883ad26d4bf57e70ef17c0f78e7b43a6a174 (diff) |
snowman: init at 2017-07-22
Diffstat (limited to 'pkgs/development/tools/analysis/snowman/default.nix')
-rw-r--r-- | pkgs/development/tools/analysis/snowman/default.nix | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/pkgs/development/tools/analysis/snowman/default.nix b/pkgs/development/tools/analysis/snowman/default.nix new file mode 100644 index 0000000000000..f21e9bba3f7f2 --- /dev/null +++ b/pkgs/development/tools/analysis/snowman/default.nix @@ -0,0 +1,37 @@ +{ stdenv, fetchFromGitHub, cmake, boost, qt4 ? null, qtbase ? null }: + +# Only one qt +assert qt4 != null -> qtbase == null; +assert qtbase != null -> qt4 == null; + +stdenv.mkDerivation rec { + name = "snowman-${version}"; + version = "2017-07-22"; + + src = fetchFromGitHub { + owner = "yegord"; + repo = "snowman"; + rev = "6c4d9cceb56bf2fd0f650313131a2240579d1bea"; + sha256 = "1d0abh0fg637jksk7nl4yl54b4cadinj93qqvsm138zyx7h57xqf"; + }; + + nativeBuildInputs = [ cmake ]; + + buildInputs = [ boost qt4 qtbase ]; + + 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; + }; +} |