about summary refs log tree commit diff
path: root/pkgs/development/tools/analysis/snowman
diff options
context:
space:
mode:
authorWill Dietz <w@wdtz.org>2017-07-25 09:46:55 -0500
committerFranz Pletz <fpletz@fnordicwalking.de>2017-08-30 02:30:19 +0200
commit5543e992f1d66aa4fb4e7ec19597bbe8b8ac18a8 (patch)
tree14ece75ac90a089b0fa736f705c8dd7681fb9db8 /pkgs/development/tools/analysis/snowman
parentd4b0883ad26d4bf57e70ef17c0f78e7b43a6a174 (diff)
downloadnixlib-5543e992f1d66aa4fb4e7ec19597bbe8b8ac18a8.tar
nixlib-5543e992f1d66aa4fb4e7ec19597bbe8b8ac18a8.tar.gz
nixlib-5543e992f1d66aa4fb4e7ec19597bbe8b8ac18a8.tar.bz2
nixlib-5543e992f1d66aa4fb4e7ec19597bbe8b8ac18a8.tar.lz
nixlib-5543e992f1d66aa4fb4e7ec19597bbe8b8ac18a8.tar.xz
nixlib-5543e992f1d66aa4fb4e7ec19597bbe8b8ac18a8.tar.zst
nixlib-5543e992f1d66aa4fb4e7ec19597bbe8b8ac18a8.zip
snowman: init at 2017-07-22
Diffstat (limited to 'pkgs/development/tools/analysis/snowman')
-rw-r--r--pkgs/development/tools/analysis/snowman/default.nix37
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 000000000000..f21e9bba3f7f
--- /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;
+  };
+}