diff options
author | xNWDD <xNWDD@users.noreply.github.com> | 2017-04-16 20:56:08 +0200 |
---|---|---|
committer | Jörg Thalheim <Mic92@users.noreply.github.com> | 2017-04-16 20:56:08 +0200 |
commit | 73a21ae6c93f1d37d68e21c31768f4df6e92e403 (patch) | |
tree | c9f509c8d3d074542fa48606966abb5cb5b1e986 /pkgs/applications/editors/jucipp | |
parent | c2130eca44633d716aa005c566b63a6952b2600d (diff) | |
download | nixlib-73a21ae6c93f1d37d68e21c31768f4df6e92e403.tar nixlib-73a21ae6c93f1d37d68e21c31768f4df6e92e403.tar.gz nixlib-73a21ae6c93f1d37d68e21c31768f4df6e92e403.tar.bz2 nixlib-73a21ae6c93f1d37d68e21c31768f4df6e92e403.tar.lz nixlib-73a21ae6c93f1d37d68e21c31768f4df6e92e403.tar.xz nixlib-73a21ae6c93f1d37d68e21c31768f4df6e92e403.tar.zst nixlib-73a21ae6c93f1d37d68e21c31768f4df6e92e403.zip |
jucipp: init at 1.2.3 (#24788)
* jucipp: init at 1.2.3 * jucipp: removed imagemagick dependency was used earlier during package development to raster the icon, decided it was better to wait for svgs to get fixed, forgot to clean * juicipp: fix static libraries weren't linking
Diffstat (limited to 'pkgs/applications/editors/jucipp')
-rw-r--r-- | pkgs/applications/editors/jucipp/default.nix | 73 |
1 files changed, 73 insertions, 0 deletions
diff --git a/pkgs/applications/editors/jucipp/default.nix b/pkgs/applications/editors/jucipp/default.nix new file mode 100644 index 000000000000..ae4f1e6ad525 --- /dev/null +++ b/pkgs/applications/editors/jucipp/default.nix @@ -0,0 +1,73 @@ +{ config, stdenv, fetchgit, makeWrapper, gnome3, at_spi2_core, libcxx, + boost, epoxy, cmake, aspell, llvmPackages, libgit2, pkgconfig, pcre, + libXdmcp, libxkbcommon, libpthreadstubs, wrapGAppsHook, aspellDicts, + coreutils, glibc, dbus_libs, openssl, libxml2, gnumake, binutils, ctags }: + +with stdenv.lib; + +stdenv.mkDerivation rec { + name = "juicipp-${version}"; + version = "1.2.3"; + + meta = { + homepage = https://github.com/cppit/jucipp; + description = "A lightweight, platform independent C++-IDE with support for C++11, C++14, and experimental C++17 features depending on libclang version"; + license = licenses.mit; + platforms = platforms.linux; + maintainers = with maintainers; [ xnwdd ]; + }; + + src = fetchgit { + url = "https://github.com/cppit/jucipp.git"; + rev = "refs/tags/v${version}"; + deepClone = true; + sha256 = "0xp6ijnrggskjrvscp204bmdpz48l5a8nxr9abp17wni6akb5wiq"; + }; + + nativeBuildInputs = [ pkgconfig wrapGAppsHook ]; + buildInputs = [ + dbus_libs + openssl + libxml2 + gnome3.gtksourceview + at_spi2_core + pcre + epoxy + boost + libXdmcp + cmake + aspell + libgit2 + libxkbcommon + gnome3.gtkmm3 + libpthreadstubs + gnome3.gtksourceviewmm + llvmPackages.clang.cc + llvmPackages.lldb + gnome3.dconf + ]; + + + lintIncludes = let + p = "arguments.emplace_back(\"-I"; + e = "\");"; + v = stdenv.lib.getVersion llvmPackages.clang; + in + p+llvmPackages.libcxx+"/include/c++/v1"+e + +p+llvmPackages.clang-unwrapped+"/lib/clang/"+v+"/include/"+e + +p+glibc.dev+"/include"+e; + + preConfigure = '' + sed -i 's|liblldb LIBLLDB_LIBRARIES|liblldb LIBNOTHING|g' CMakeLists.txt + sed -i 's|> arguments;|> arguments; ${lintIncludes}|g' src/source_clang.cc + ''; + cmakeFlags = "-DLIBLLDB_LIBRARIES=${stdenv.lib.makeLibraryPath [ llvmPackages.lldb ]}/liblldb.so"; + postInstall = '' + mv $out/bin/juci $out/bin/.juci + makeWrapper "$out/bin/.juci" "$out/bin/juci" \ + --set PATH "${stdenv.lib.makeBinPath [ ctags coreutils llvmPackages.clang.cc cmake gnumake binutils llvmPackages.clang ]}" \ + --set NO_AT_BRIDGE 1 \ + --set ASPELL_CONF "dict-dir ${aspellDicts.en}/lib/aspell" + ''; + +} |