nixpkgs/pkgs/development/tools/analysis/snowman/default.nix
Will Dietz 31a903bada snowman: 2017-07-22 -> 2017-08-13
Minor update but notably includes fix
for breakage when using cmake 3.9
2017-10-04 15:31:39 -05: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-08-13";
src = fetchFromGitHub {
owner = "yegord";
repo = "snowman";
rev = "cd9edcddf873fc40d7bcb1bb1eae815faedd3a03";
sha256 = "10f3kd5m5xw7hqh92ba7dcczwbznxvk1qxg0yycqz7y9mfr2282n";
};
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;
};
}