Merge pull request #22468 from taktoa/souper

souper: init at 2017-01-05

authored by Pascal Wittmann and committed by GitHub 39f2bf09 01ca9164

+58
+56
pkgs/development/compilers/souper/default.nix
··· 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 + }
+2
pkgs/top-level/all-packages.nix
··· 3852 3852 3853 3853 sonata = callPackage ../applications/audio/sonata { }; 3854 3854 3855 + souper = callPackage ../development/compilers/souper { }; 3856 + 3855 3857 sparsehash = callPackage ../development/libraries/sparsehash { }; 3856 3858 3857 3859 spiped = callPackage ../tools/networking/spiped { };