git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #22468 from taktoa/souper

souper: init at 2017-01-05

commit39f2bf09760003dbc868644434d34c38adae1fdc authorPascal Wittmann <PascalWittmann@gmx.net> dateWed 8 Feb 2017, 09:20 (10 years ago) parent01ca916ac72948
2 files changed+58
pkgs/development/compilers/souper/default.nix+56 pkgs/top-level/all-packages.nix+2
pkgs/development/compilers/souper/default.nixnew file+56
@@ -0,0 +1,56 @@
1+{ stdenv, fetchFromGitHub, cmake, makeWrapper
2+, llvmPackages_39, hiredis, z3_opt, gtest
3+}:
4+
5+let
6+ klee = fetchFromGitHub {
7+ owner = "klee";
8+ repo = "klee";
9+ rev = "a743d7072d9ccf11f96e3df45f25ad07da6ad9d6";
10+ sha256 = "0qwzs029vlba8xz362n4b00hdm2z3lzhzmvix1r8kpbfrvs8vv91";
11+ };
12+in stdenv.mkDerivation {
13+ name = "souper-unstable-2017-01-05";
14+
15+ src = fetchFromGitHub {
16+ owner = "google";
17+ repo = "souper";
18+ rev = "1be75fe6a96993b57dcba038798fe6d1c7d113eb";
19+ sha256 = "0r8mjb88lwz9a3syx7gwsxlwfg0krffaml04ggaf3ad0cza2mvm8";
20+ };
21+
22+ nativeBuildInputs = [
23+ cmake
24+ makeWrapper
25+ ];
26+
27+ buildInputs = [
28+ llvmPackages_39.llvm
29+ llvmPackages_39.clang-unwrapped
30+ hiredis
31+ gtest
32+ ];
33+
34+ enableParallelBuilding = true;
35+
36+ preConfigure = ''
37+ mkdir -pv third_party
38+ cp -R "${klee}" third_party/klee
39+ '';
40+
41+ installPhase = ''
42+ mkdir -pv $out/bin
43+ cp -v ./souper $out/bin/
44+ cp -v ./clang-souper $out/bin/
45+ wrapProgram "$out/bin/souper" \
46+ --add-flags "-z3-path=\"${z3_opt}/bin/z3\""
47+ '';
48+
49+ meta = with stdenv.lib; {
50+ description = "A superoptimizer for LLVM IR";
51+ homepage = "https://github.com/google/souper";
52+ license = licenses.asl20;
53+ maintainers = with maintainers; [ taktoa ];
54+ platforms = with platforms; linux;
55+ };
56+}
pkgs/top-level/all-packages.nix+2
@@ -3852,6 +3852,8 @@ with pkgs;
38523852
38533853 sonata = callPackage ../applications/audio/sonata { };
38543854
3855+ souper = callPackage ../development/compilers/souper { };
3856+
38553857 sparsehash = callPackage ../development/libraries/sparsehash { };
38563858
38573859 spiped = callPackage ../tools/networking/spiped { };