diff options
author | midchildan <git@midchildan.org> | 2019-06-20 00:19:50 +0900 |
---|---|---|
committer | Frederik Rietdijk <freddyrietdijk@fridh.nl> | 2019-07-20 14:11:31 +0200 |
commit | cf3948fbe079f6c3c096053caf49c4b5b8436e94 (patch) | |
tree | a1267925c802b299ba9c947c719f77ef5a885898 /pkgs/development/tools/sourcetrail | |
parent | 265d3bc1d686eff6e874104f1d55248e4fde10bb (diff) | |
download | nixlib-cf3948fbe079f6c3c096053caf49c4b5b8436e94.tar nixlib-cf3948fbe079f6c3c096053caf49c4b5b8436e94.tar.gz nixlib-cf3948fbe079f6c3c096053caf49c4b5b8436e94.tar.bz2 nixlib-cf3948fbe079f6c3c096053caf49c4b5b8436e94.tar.lz nixlib-cf3948fbe079f6c3c096053caf49c4b5b8436e94.tar.xz nixlib-cf3948fbe079f6c3c096053caf49c4b5b8436e94.tar.zst nixlib-cf3948fbe079f6c3c096053caf49c4b5b8436e94.zip |
sourcetrail: 2019.1.11 -> 2019.2.39
Diffstat (limited to 'pkgs/development/tools/sourcetrail')
-rw-r--r-- | pkgs/development/tools/sourcetrail/default.nix | 52 |
1 files changed, 27 insertions, 25 deletions
diff --git a/pkgs/development/tools/sourcetrail/default.nix b/pkgs/development/tools/sourcetrail/default.nix index 4c5b1843229b..f2f50c18e0b9 100644 --- a/pkgs/development/tools/sourcetrail/default.nix +++ b/pkgs/development/tools/sourcetrail/default.nix @@ -1,18 +1,18 @@ { stdenv, fetchurl, autoPatchelfHook -, zlib, expat, dbus, openssl}: +, zlib, expat, dbus, openssl, python3 }: stdenv.mkDerivation rec { name = "sourcetrail-${version}"; - version = "2019.1.11"; + version = "2019.2.39"; src = fetchurl { name = "sourtrail.tar.gz"; url = "https://www.sourcetrail.com/downloads/${version}/linux/64bit"; - sha256 = "09f3qdgdqg6dlai43050qh4iv1d4j43isk81q68swalpnvjn72w0"; + sha256 = "13kzfnsb5lf9v6bqw41qljp5bgz2rd3w163r6xg59hzd3dv8f90q"; }; nativeBuildInputs = [ autoPatchelfHook ]; - buildInputs = [ zlib expat dbus stdenv.cc.cc openssl ]; + buildInputs = [ zlib expat dbus stdenv.cc.cc openssl python3 ]; installPhase = '' runHook preInstall @@ -38,28 +38,30 @@ stdenv.mkDerivation rec { --replace /usr/bin/ $out/bin/ cat <<EOF > $out/bin/sourcetrail - #! ${stdenv.shell} -e - - # XXX: Sourcetrail somehow copies the initial config files into the home - # directory without write permissions. We currently just copy them - # ourselves to work around this problem. - setup_config() { - local src dst - - [ ! -d ~/.config/sourcetrail ] && mkdir -p ~/.config/sourcetrail - for src in $out/opt/data/fallback/*; do - dst=~/.config/sourcetrail/"\$(basename "\$src")" - if [ ! -e "\$dst" ]; then - cp -r "\$src" "\$dst" - fi - done - - chmod -R u+w ~/.config/sourcetrail - } - - [ -d "\$HOME" ] && setup_config - exec "$out/opt/Sourcetrail.sh" "\$@" + #! ${stdenv.shell} -e + + # XXX: Sourcetrail somehow copies the initial config files into the home + # directory without write permissions. We currently just copy them + # ourselves to work around this problem. + setup_config() { + local src dst + + [ ! -d ~/.config/sourcetrail ] && mkdir -p ~/.config/sourcetrail + for src in $out/opt/data/fallback/*; do + dst=~/.config/sourcetrail/"\$(basename "\$src")" + if [ ! -e "\$dst" ]; then + cp -r "\$src" "\$dst" + fi + done + + chmod -R u+w ~/.config/sourcetrail + } + + [ -d "\$HOME" ] && setup_config + export PATH="\$PATH:${python3}/bin" + exec "$out/opt/Sourcetrail.sh" "\$@" EOF + chmod +x $out/bin/sourcetrail runHook postInstall |