mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-23 14:13:35 +00:00
31a903bada
Minor update but notably includes fix for breakage when using cmake 3.9
38 lines
932 B
Nix
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;
|
|
};
|
|
}
|