1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-21 13:44:50 +00:00
nixpkgs/pkgs/development/tools/analysis/snowman/default.nix
2018-01-06 15:09:01 -06:00

38 lines
932 B
Nix

{ 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-11-19";
src = fetchFromGitHub {
owner = "yegord";
repo = "snowman";
rev = "d03c2d6ffbf262c0011584df59d6bd69c020e08e";
sha256 = "0bzqp3zc100dzvybf57bj4dvnybvds0lmn1w2xjb19wkzm9liskn";
};
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;
};
}