Merge pull request #186590 from midchildan/remove/sourcetrail

sourcetrail: remove

authored by Franz Pletz and committed by GitHub f38bb4d4 8a36e147

+3 -524
+1
pkgs/applications/editors/vim/plugins/aliases.nix
··· 130 130 unite = unite-vim; 131 131 UltiSnips = ultisnips; 132 132 vim-addon-vim2nix = vim2nix; 133 + vim-sourcetrail = throw "vim-sourcetrail has been removed: abandoned by upstream"; # Added 2022-08-14 133 134 vimproc = vimproc-vim; 134 135 vimshell = vimshell-vim; 135 136 vinegar = vim-vinegar;
-12
pkgs/applications/editors/vim/plugins/generated.nix
··· 11540 11540 meta.homepage = "https://github.com/christoomey/vim-sort-motion/"; 11541 11541 }; 11542 11542 11543 - vim-sourcetrail = buildVimPluginFrom2Nix { 11544 - pname = "vim-sourcetrail"; 11545 - version = "2021-02-16"; 11546 - src = fetchFromGitHub { 11547 - owner = "CoatiSoftware"; 11548 - repo = "vim-sourcetrail"; 11549 - rev = "c9c621a7ab81c52a661457ccf33a64fd7c56fd9d"; 11550 - sha256 = "192f69yz1hh2k0b2kcvfvv1jirjcvnbxvjkagmlkkqcg8w32nmlg"; 11551 - }; 11552 - meta.homepage = "https://github.com/CoatiSoftware/vim-sourcetrail/"; 11553 - }; 11554 - 11555 11543 vim-speeddating = buildVimPluginFrom2Nix { 11556 11544 pname = "vim-speeddating"; 11557 11545 version = "2021-04-29";
-1
pkgs/applications/editors/vim/plugins/vim-plugin-names
··· 969 969 https://github.com/jhradilek/vim-snippets/,,vim-docbk-snippets 970 970 https://github.com/tomlion/vim-solidity/,, 971 971 https://github.com/christoomey/vim-sort-motion/,, 972 - https://github.com/CoatiSoftware/vim-sourcetrail/,, 973 972 https://github.com/tpope/vim-speeddating/,, 974 973 https://github.com/kbenzie/vim-spirv/,, 975 974 https://github.com/mhinz/vim-startify/,,
-275
pkgs/development/tools/sourcetrail/default.nix
··· 1 - { lib, stdenv, fetchFromGitHub, callPackage, writeScript, fetchpatch, cmake 2 - , wrapQtAppsHook, qt5, boost, llvmPackages, gcc, jdk, maven, pythonPackages 3 - , coreutils, which, desktop-file-utils, shared-mime-info, imagemagick, libicns 4 - }: 5 - 6 - let 7 - # TODO: remove when version incompatibility issue with python3Packages.jedi is 8 - # resolved 9 - parso = pythonPackages.callPackage ./parso.nix { }; 10 - jedi = pythonPackages.callPackage ./jedi.nix { inherit parso; }; 11 - 12 - pythonIndexer = 13 - pythonPackages.callPackage ./python.nix { inherit jedi parso; }; 14 - javaIndexer = callPackage ./java.nix { }; 15 - 16 - appPrefixDir = if stdenv.isDarwin then 17 - "$out/Applications/Sourcetrail.app/Contents" 18 - else 19 - "$out/opt/sourcetrail"; 20 - appBinDir = 21 - if stdenv.isDarwin then "${appPrefixDir}/MacOS" else "${appPrefixDir}/bin"; 22 - appResourceDir = if stdenv.isDarwin then 23 - "${appPrefixDir}/Resources" 24 - else 25 - "${appPrefixDir}/share"; 26 - 27 - # Upstream script: 28 - # https://github.com/CoatiSoftware/Sourcetrail/blob/master/script/update_java_indexer.sh 29 - installJavaIndexer = writeScript "update_java_indexer.sh" '' 30 - #!${stdenv.shell} 31 - 32 - cd "$(dirname "$0")/.." 33 - dst="${appResourceDir}/data/java/lib" 34 - 35 - mkdir -p "$dst" 36 - cp "${javaIndexer}/target/java-indexer-1.0.jar" "$dst/java-indexer.jar" 37 - cp -r java_indexer/lib/*.jar "$dst" 38 - ''; 39 - 40 - # Upstream script: 41 - # https://github.com/CoatiSoftware/Sourcetrail/blob/master/script/download_python_indexer.sh 42 - installPythonIndexer = writeScript "download_python_indexer.sh" '' 43 - #!${stdenv.shell} 44 - 45 - mkdir -p ${appResourceDir}/data 46 - ln -s "${pythonIndexer}/bin" "${appResourceDir}/data/python" 47 - ''; 48 - in stdenv.mkDerivation rec { 49 - pname = "sourcetrail"; 50 - # NOTE: skip 2020.4.35 https://github.com/CoatiSoftware/Sourcetrail/pull/1136 51 - version = "2020.2.43"; 52 - 53 - src = fetchFromGitHub { 54 - owner = "CoatiSoftware"; 55 - repo = "Sourcetrail"; 56 - rev = version; 57 - sha256 = "0jp9y86xzkcxikc1cn4f6gqgg6zdssck08677ldagw25p1zadvzw"; 58 - }; 59 - 60 - patches = let 61 - url = commit: 62 - "https://github.com/CoatiSoftware/Sourcetrail/commit/${commit}.patch"; 63 - in [ 64 - ./disable-updates.patch 65 - ./disable-failing-tests.patch # FIXME: 5 test cases failing due to sandbox 66 - # TODO: remove on next release 67 - (fetchpatch { 68 - name = "fix-filecopy.patch"; 69 - url = url "d079d1787c9e5cadcf41a003666dc0746cc1cda0"; 70 - sha256 = "0mixy2a4s16kv2q89k7y4dv21wnv2zd86i4gdwn3xz977y8hf92b"; 71 - }) 72 - (fetchpatch { 73 - name = "fix-broken-test.patch"; 74 - url = url "85329174bac8a301733100dc4540258f977e2c5a"; 75 - sha256 = "17l4417sbmkrgr6v3fbazlmkzl9774zrpjv2n9zwfrz52y30f7b9"; 76 - }) 77 - ]; 78 - 79 - nativeBuildInputs = [ 80 - cmake 81 - jdk 82 - wrapQtAppsHook 83 - desktop-file-utils 84 - imagemagick 85 - javaIndexer # the resulting jar file is copied by our install script 86 - ] ++ lib.optional (stdenv.isDarwin) libicns 87 - ++ lib.optionals doCheck testBinPath; 88 - buildInputs = [ boost pythonIndexer shared-mime-info ] 89 - ++ (with qt5; [ qtbase qtsvg ]) ++ (with llvmPackages; [ libclang llvm ]); 90 - binPath = [ gcc jdk.jre maven which ]; 91 - testBinPath = binPath ++ [ coreutils ]; 92 - 93 - cmakeFlags = [ 94 - "-DBoost_USE_STATIC_LIBS=OFF" 95 - "-DBUILD_CXX_LANGUAGE_PACKAGE=ON" 96 - "-DBUILD_JAVA_LANGUAGE_PACKAGE=ON" 97 - "-DBUILD_PYTHON_LANGUAGE_PACKAGE=ON" 98 - ] ++ lib.optional stdenv.isLinux 99 - "-DCMAKE_PREFIX_PATH=${llvmPackages.clang-unwrapped}" 100 - ++ lib.optional stdenv.isDarwin 101 - "-DClang_DIR=${llvmPackages.clang-unwrapped}"; 102 - 103 - postPatch = let 104 - major = lib.versions.major version; 105 - minor = lib.versions.minor version; 106 - patch = lib.versions.patch version; 107 - in '' 108 - # Upstream script obtains it's version from git: 109 - # https://github.com/CoatiSoftware/Sourcetrail/blob/master/cmake/version.cmake 110 - cat > cmake/version.cmake <<EOF 111 - set(GIT_BRANCH "") 112 - set(GIT_COMMIT_HASH "") 113 - set(GIT_VERSION_NUMBER "") 114 - set(VERSION_YEAR "${major}") 115 - set(VERSION_MINOR "${minor}") 116 - set(VERSION_COMMIT "${patch}") 117 - set(BUILD_TYPE "Release") 118 - set(VERSION_STRING "${major}.${minor}.${patch}") 119 - EOF 120 - 121 - # Sourcetrail attempts to copy clang headers from the LLVM store path 122 - substituteInPlace CMakeLists.txt \ 123 - --replace "\''${LLVM_BINARY_DIR}" '${lib.getLib llvmPackages.clang-unwrapped}' 124 - 125 - patchShebangs script 126 - ln -sf ${installJavaIndexer} script/update_java_indexer.sh 127 - ln -sf ${installPythonIndexer} script/download_python_indexer.sh 128 - ''; 129 - 130 - # Directory layout for Linux: 131 - # 132 - # Sourcetrail doesn't use the usual cmake install() commands and instead uses 133 - # its own bash script for packaging. Since we're not able to reuse the script, 134 - # we'll have to roll our own in nixpkgs. 135 - # 136 - # Sourcetrail currently assumes one of the following two layouts for the 137 - # placement of its files: 138 - # 139 - # AppImage Layout Traditional Layout 140 - # ├── bin/ ├── sourcetrail* 141 - # │   └── sourcetrail* └── data/ 142 - # └── share/ 143 - # └── data/ sourcetrail: application executable 144 - # data: contains assets exlusive to Sourcetrail 145 - # 146 - # The AppImage layout is the one currently used by the upstream project for 147 - # packaging its Linux port. We can't use this layout as-is for nixpkgs, 148 - # because Sourcetrail treating $out/share/data as its own might lead to 149 - # conflicts with other packages when linked into a Nix profile. 150 - # 151 - # On the other hand, the traditional layout isn't used by the upstream project 152 - # anymore so there's a risk that it might become unusable at any time in the 153 - # future. Since it's hard to detect these problems at build time, it's not a 154 - # good idea to use this layout for packaging in nixpkgs. 155 - # 156 - # Considering the problems with the above layouts, we go with the third 157 - # option, a slight variation of the AppImage layout: 158 - # 159 - # nixpkgs 160 - # ├── bin/ 161 - # │   └── sourcetrail@ (symlink to opt/sourcetrail/bin/sourcetrail) 162 - # └── opt/sourcetrail/ 163 - # ├── bin/ 164 - # │   └── sourcetrail* 165 - # └── share/ 166 - # └── data/ 167 - # 168 - # Upstream install script: 169 - # https://github.com/CoatiSoftware/Sourcetrail/blob/master/setup/Linux/createPackages.sh 170 - installPhase = '' 171 - runHook preInstall 172 - 173 - mkdir -p ${appResourceDir} 174 - cp -R ../bin/app/data ${appResourceDir} 175 - cp -R ../bin/app/user/projects ${appResourceDir}/data/fallback 176 - rm -r ${appResourceDir}/data/install ${appResourceDir}/data/*_template.xml 177 - 178 - mkdir -p "${appBinDir}" 179 - cp app/Sourcetrail ${appBinDir}/sourcetrail 180 - cp app/sourcetrail_indexer ${appBinDir}/sourcetrail_indexer 181 - wrapQtApp ${appBinDir}/sourcetrail \ 182 - --prefix PATH : ${lib.makeBinPath binPath} 183 - 184 - mkdir -p $out/bin 185 - '' + lib.optionalString (stdenv.isLinux) '' 186 - ln -sf ${appBinDir}/sourcetrail $out/bin/sourcetrail 187 - 188 - desktop-file-install --dir=$out/share/applications \ 189 - --set-key Exec --set-value ${appBinDir}/sourcetrail \ 190 - ../setup/Linux/data/sourcetrail.desktop 191 - 192 - mkdir -p $out/share/mime/packages 193 - cp ../setup/Linux/data/sourcetrail-mime.xml $out/share/mime/packages/ 194 - 195 - for size in 48 64 128 256 512; do 196 - mkdir -p $out/share/icons/hicolor/''${size}x''${size}/apps/ 197 - convert ${appResourceDir}/data/gui/icon/logo_1024_1024.png \ 198 - -resize ''${size}x''${size} \ 199 - $out/share/icons/hicolor/''${size}x''${size}/apps/sourcetrail.png 200 - done 201 - '' + lib.optionalString (stdenv.isDarwin) '' 202 - # change case (some people *might* choose a case sensitive Nix store) 203 - mv ${appBinDir}/sourcetrail{,.tmp} 204 - mv ${appBinDir}/{sourcetrail.tmp,Sourcetrail} 205 - mv ${appBinDir}/sourcetrail_indexer ${appResourceDir}/Sourcetrail_indexer 206 - 207 - ln -sf ${appBinDir}/Sourcetrail $out/bin/sourcetrail 208 - 209 - cp app/bundle_info.plist ${appPrefixDir}/Info.plist 210 - 211 - mkdir -p ${appResourceDir}/icon.iconset 212 - for size in 16 32 128 256 512; do 213 - convert ${appResourceDir}/data/gui/icon/logo_1024_1024.png \ 214 - -resize ''${size}x''${size} \ 215 - ${appResourceDir}/icon.iconset/icon_''${size}x''${size}.png 216 - convert ${appResourceDir}/data/gui/icon/logo_1024_1024.png \ 217 - -resize $(( 2 * size ))x$(( 2 * size )) \ 218 - ${appResourceDir}/icon.iconset/icon_''${size}x''${size}@2x.png 219 - done 220 - png2icns ${appResourceDir}/icon.icns \ 221 - ${appResourceDir}/icon.iconset/icon_{16x16,32x32,128x128,256x256,512x512,512x512@2x}.png 222 - 223 - mkdir -p ${appResourceDir}/project.iconset 224 - for size in 16 32 64 128 256 512; do 225 - convert ${appResourceDir}/data/gui/icon/project_256_256.png \ 226 - -resize ''${size}x''${size} \ 227 - ${appResourceDir}/project.iconset/icon_''${size}x''${size}.png 228 - convert ${appResourceDir}/data/gui/icon/project_256_256.png \ 229 - -resize $(( 2 * size ))x$(( 2 * size )) \ 230 - ${appResourceDir}/project.iconset/icon_''${size}x''${size}@2x.png 231 - done 232 - png2icns ${appResourceDir}/project.icns \ 233 - ${appResourceDir}/project.iconset/icon_{16x16,32x32,128x128,256x256,512x512,512x512@2x}.png 234 - '' + '' 235 - runHook postInstall 236 - ''; 237 - 238 - checkPhase = '' 239 - runHook preCheck 240 - 241 - rm -rf ../bin/app/data/{python,java/lib} 242 - ln -s $out/opt/sourcetrail/share/data/python ../bin/app/data/python 243 - ln -s $out/opt/sourcetrail/share/data/java/lib ../bin/app/data/java/lib 244 - 245 - pushd test 246 - # shorten PATH to prevent build failures 247 - wrapQtApp ./Sourcetrail_test \ 248 - --set PATH "" \ 249 - --prefix PATH : ${lib.makeBinPath testBinPath} \ 250 - --set MAVEN_OPTS "-Dmaven.repo.local=$TMPDIR/m2repo" 251 - ./Sourcetrail_test 252 - popd 253 - 254 - rm ../bin/app/data/{python,java/lib} 255 - 256 - runHook postCheck 257 - ''; 258 - 259 - # This has to be done manually in the installPhase because the actual binary 260 - # lives in $out/opt/sourcetrail/bin, which isn't covered by wrapQtAppsHook 261 - dontWrapQtApps = true; 262 - 263 - # FIXME: Some test cases are disabled in the patch phase. 264 - # FIXME: Tests are disabled on some platforms because of faulty detection 265 - # logic for libjvm.so. Should work with manual configuration. 266 - doCheck = !stdenv.isDarwin && stdenv.isx86_64; 267 - 268 - meta = with lib; { 269 - homepage = "https://www.sourcetrail.com"; 270 - description = "A cross-platform source explorer for C/C++ and Java"; 271 - platforms = platforms.all; 272 - license = licenses.gpl3Plus; 273 - maintainers = with maintainers; [ midchildan ]; 274 - }; 275 - }
-48
pkgs/development/tools/sourcetrail/disable-failing-tests.patch
··· 1 - diff --git a/src/test/SourceGroupTestSuite.cpp b/src/test/SourceGroupTestSuite.cpp 2 - index b5c5562a..d56b83bb 100644 3 - --- a/src/test/SourceGroupTestSuite.cpp 4 - +++ b/src/test/SourceGroupTestSuite.cpp 5 - @@ -522,6 +522,7 @@ TEST_CASE("sourcegroup java gradle generates expected output") 6 - 7 - TEST_CASE("sourcegroup java maven generates expected output") 8 - { 9 - + return; 10 - std::vector<FilePath> mavenPaths = utility::getMavenExecutablePathDetector()->getPaths(); 11 - 12 - REQUIRE(!mavenPaths.empty()); 13 - diff --git a/src/test/UtilityMavenTestSuite.cpp b/src/test/UtilityMavenTestSuite.cpp 14 - index f48fe2b6..363ef64a 100644 15 - --- a/src/test/UtilityMavenTestSuite.cpp 16 - +++ b/src/test/UtilityMavenTestSuite.cpp 17 - @@ -17,6 +17,7 @@ TEST_CASE("maven path detector is working") 18 - 19 - TEST_CASE("maven wrapper detects source directories of simple projects") 20 - { 21 - + return; 22 - std::shared_ptr<PathDetector> mavenPathDetector = utility::getMavenExecutablePathDetector(); 23 - REQUIRE(!mavenPathDetector->getPaths().empty()); 24 - 25 - @@ -41,6 +42,7 @@ TEST_CASE("maven wrapper detects source directories of simple projects") 26 - 27 - TEST_CASE("maven wrapper detects source and test directories of simple projects") 28 - { 29 - + return; 30 - std::shared_ptr<PathDetector> mavenPathDetector = utility::getMavenExecutablePathDetector(); 31 - REQUIRE(!mavenPathDetector->getPaths().empty()); 32 - 33 - @@ -65,6 +67,7 @@ TEST_CASE("maven wrapper detects source and test directories of simple projects" 34 - 35 - TEST_CASE("maven wrapper detects source directories of nested modules") 36 - { 37 - + return; 38 - std::shared_ptr<PathDetector> mavenPathDetector = utility::getMavenExecutablePathDetector(); 39 - REQUIRE(!mavenPathDetector->getPaths().empty()); 40 - 41 - @@ -101,6 +104,7 @@ TEST_CASE("maven wrapper detects source directories of nested modules") 42 - 43 - TEST_CASE("maven wrapper detects source and test directories of nested modules") 44 - { 45 - + return; 46 - std::shared_ptr<PathDetector> mavenPathDetector = utility::getMavenExecutablePathDetector(); 47 - REQUIRE(!mavenPathDetector->getPaths().empty()); 48 -
-13
pkgs/development/tools/sourcetrail/disable-updates.patch
··· 1 - diff --git a/src/lib/settings/ApplicationSettings.cpp b/src/lib/settings/ApplicationSettings.cpp 2 - index 1be13ccd..db6098e1 100644 3 - --- a/src/lib/settings/ApplicationSettings.cpp 4 - +++ b/src/lib/settings/ApplicationSettings.cpp 5 - @@ -593,7 +593,7 @@ void ApplicationSettings::setUserToken(std::string token) 6 - 7 - bool ApplicationSettings::getAutomaticUpdateCheck() const 8 - { 9 - - return getValue<bool>("user/update_check/automatic", true); 10 - + return false; 11 - } 12 - 13 - void ApplicationSettings::setAutomaticUpdateCheck(bool automaticUpdates)
-28
pkgs/development/tools/sourcetrail/java.nix
··· 1 - { lib, pkgs, javaPackages }: 2 - 3 - let 4 - javaIndexer = javaPackages.mavenbuild { 5 - name = "sourcetrail-java-indexer-${pkgs.sourcetrail.version}"; 6 - src = pkgs.sourcetrail.src; 7 - m2Path = "com/sourcetrail/java-indexer"; 8 - 9 - # This doesn't include all required dependencies. We still rely on binary 10 - # copies of maven packages included in the source repo for building. 11 - mavenDeps = with javaPackages; [ 12 - mavenCompiler_3_2 13 - plexusCompilerApi_2_4 14 - plexusCompilerJavac_2_4 15 - plexusCompilerManager_2_4 16 - ]; 17 - 18 - meta = { 19 - description = "Java indexer for Sourcetrail"; 20 - sourceProvenance = with lib.sourceTypes; [ binaryBytecode ]; 21 - }; 22 - }; 23 - in 24 - javaIndexer.overrideAttrs (drv: { 25 - postUnpack = '' 26 - export sourceRoot=''${sourceRoot}/java_indexer 27 - ''; 28 - })
-36
pkgs/development/tools/sourcetrail/jedi.nix
··· 1 - # Taken from a past commit of nixpkgs 2 - 3 - { lib, buildPythonPackage, fetchPypi, pytest, glibcLocales, tox, pytest-cov, parso }: 4 - 5 - buildPythonPackage rec { 6 - pname = "jedi"; 7 - 8 - # TODO: Remove this package when version incompatibility issue with 9 - # python3Packages.jedi is resolved. 10 - # 11 - # Upstream requirements: 12 - # https://github.com/CoatiSoftware/SourcetrailPythonIndexer#requirements 13 - version = "0.17.2"; 14 - 15 - src = fetchPypi { 16 - inherit pname version; 17 - sha256 = "86ed7d9b750603e4ba582ea8edc678657fb4007894a12bcf6f4bb97892f31d20"; 18 - }; 19 - 20 - checkInputs = [ pytest glibcLocales tox pytest-cov ]; 21 - 22 - propagatedBuildInputs = [ parso ]; 23 - 24 - checkPhase = '' 25 - LC_ALL="en_US.UTF-8" py.test test 26 - ''; 27 - 28 - # tox required for tests: https://github.com/davidhalter/jedi/issues/808 29 - doCheck = false; 30 - 31 - meta = with lib; { 32 - homepage = "https://github.com/davidhalter/jedi"; 33 - description = "An autocompletion tool for Python that can be used for text editors"; 34 - license = licenses.lgpl3Plus; 35 - }; 36 - }
-29
pkgs/development/tools/sourcetrail/parso.nix
··· 1 - # Taken from a past commit of nixpkgs 2 - 3 - { lib 4 - , buildPythonPackage 5 - , fetchPypi 6 - , pytest 7 - }: 8 - 9 - buildPythonPackage rec { 10 - pname = "parso"; 11 - 12 - # TODO: Remove along with ./jedi.nix when version compatiblity issue is 13 - # resolved. 14 - version = "0.7.0"; 15 - 16 - src = fetchPypi { 17 - inherit pname version; 18 - sha256 = "908e9fae2144a076d72ae4e25539143d40b8e3eafbaeae03c1bfe226f4cdf12c"; 19 - }; 20 - 21 - checkInputs = [ pytest ]; 22 - 23 - meta = { 24 - description = "A Python Parser"; 25 - homepage = "https://github.com/davidhalter/parso"; 26 - license = lib.licenses.mit; 27 - }; 28 - 29 - }
-72
pkgs/development/tools/sourcetrail/python.nix
··· 1 - { stdenv, lib, fetchFromGitHub, wrapPython, python, jedi, parso, cmake, swig }: 2 - 3 - stdenv.mkDerivation rec { 4 - pname = "SourcetrailPythonIndexer"; 5 - version = "v1_db25_p5"; 6 - 7 - src = fetchFromGitHub { 8 - owner = "CoatiSoftware"; 9 - repo = pname; 10 - rev = version; 11 - sha256 = "01jaigxigq6dvfwq018gn9qw7i6p4jm0y71lqzschfv9vwf6ga45"; 12 - fetchSubmodules = true; 13 - }; 14 - 15 - nativeBuildInputs = [ wrapPython cmake swig ]; 16 - buildInputs = [ python ]; 17 - pythonPath = [ jedi parso ]; 18 - 19 - dontUseCmakeConfigure = true; 20 - cmakeFlags = [ 21 - "-DBUILD_BINDINGS_PYTHON=1" 22 - "-DPYTHON_VERSION=${lib.versions.majorMinor python.version}" 23 - ]; 24 - 25 - buildPhase = '' 26 - pushd SourcetrailDB 27 - cmake -Bbuild $cmakeFlags . 28 - pushd build 29 - make -j $NIX_BUILD_CORES 30 - popd 31 - popd 32 - '' + lib.optionalString stdenv.isDarwin '' 33 - pushd SourcetrailDB/build/bindings_python 34 - cp _sourcetraildb.dylib _sourcetraildb.so 35 - popd 36 - ''; 37 - 38 - checkPhase = '' 39 - buildPythonPath "$pythonPath" 40 - 41 - # FIXME: some tests are failing 42 - # PYTHONPATH="$program_PYTHONPATH:SourcetrailDB/build/bindings_python" \ 43 - # ${python}/bin/python test.py 44 - PYTHONPATH="$program_PYTHONPATH:SourcetrailDB/build/bindings_python" \ 45 - ${python}/bin/python test_shallow.py 46 - ''; 47 - 48 - installPhase = '' 49 - shopt -s extglob 50 - mkdir -p $out/{bin,libexec} 51 - 52 - cp !(run).py $out/libexec # copy *.py excluding run.py (needs extglob) 53 - cat <(echo '#!/usr/bin/env python') run.py > $out/libexec/run.py 54 - chmod +x $out/libexec/run.py 55 - ln -s $out/libexec/run.py $out/bin/SourcetrailPythonIndexer 56 - 57 - pushd SourcetrailDB/build/bindings_python 58 - cp sourcetraildb.py $out/libexec 59 - cp _sourcetraildb.so $out/libexec/_sourcetraildb.so 60 - popd 61 - 62 - wrapPythonProgramsIn "$out/libexec" "$pythonPath" 63 - ''; 64 - 65 - doCheck = true; 66 - 67 - meta = with lib; { 68 - description = "Python indexer for Sourcetrail"; 69 - homepage = "https://github.com/CoatiSoftware/SourcetrailPythonIndexer"; 70 - license = licenses.gpl3; 71 - }; 72 - }
+2
pkgs/top-level/aliases.nix
··· 1329 1329 source-han-serif-simplified-chinese = source-han-serif; 1330 1330 source-han-serif-traditional-chinese = source-han-serif; 1331 1331 1332 + sourcetrail = throw "sourcetrail has been removed: abandoned by upstream"; # Added 2022-08-14 1333 + 1332 1334 spaceOrbit = throw "'spaceOrbit' has been renamed to/replaced by 'space-orbit'"; # Converted to throw 2022-02-22 1333 1335 spectral = neochat; # Added 2020-12-27 1334 1336 speech_tools = throw "'speech_tools' has been renamed to/replaced by 'speech-tools'"; # Converted to throw 2022-02-22
-10
pkgs/top-level/all-packages.nix
··· 30625 30625 30626 30626 spotify = callPackage ../applications/audio/spotify/wrapper.nix { }; 30627 30627 30628 - sourcetrail = let 30629 - llvmPackages = llvmPackages_10; 30630 - in libsForQt5.callPackage ../development/tools/sourcetrail { 30631 - stdenv = if stdenv.cc.isClang then llvmPackages.stdenv else stdenv; 30632 - jdk = jdk8; 30633 - pythonPackages = python3Packages; 30634 - inherit llvmPackages; 30635 - boost = boost16x; # Filesystem tests in the checkPhase fail with Boost 1.77 30636 - }; 30637 - 30638 30628 spotifywm = callPackage ../applications/audio/spotifywm { }; 30639 30629 30640 30630 psst = callPackage ../applications/audio/psst { };