lol
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

smartgithg: 7.0.0 -> 7.0.2

Also adapted package's freedesktop item install
script so that it works in the context of nix.
(i.e.: icons and `*.desktop` file now properly
installed by the package).

+16 -2
+5 -2
pkgs/applications/version-management/smartgithg/default.nix
··· 8 8 9 9 stdenv.mkDerivation rec { 10 10 name = "smartgithg-${version}"; 11 - version = "7_0_0"; 11 + version = "7_0_2"; 12 12 13 13 src = fetchurl { 14 14 url = "http://www.syntevo.com/downloads/smartgit/smartgit-generic-${version}.tar.gz"; 15 - sha256 = "099hnpczh2c0s86nsdybymmm4903n0bsjdq1fpdmm0x5w4216iy6"; 15 + sha256 = "1jpi424aqy6niq31j750rgbspwii013c8kbi965i4jzjpba1pagi"; 16 16 }; 17 17 18 18 buildInputs = [ ··· 23 23 buildCommand = let 24 24 pkg_path = "$out/${name}"; 25 25 bin_path = "$out/bin"; 26 + install_freedesktop_items = ./install_freedesktop_items.sh; 26 27 runtime_paths = lib.makeSearchPath "bin" [ 27 28 jre 28 29 git mercurial subversion ··· 48 49 --prefix SMARTGITHG_JAVA_HOME : ${jre} 49 50 patchShebangs $out 50 51 cp ${bin_path}/smartgit ${bin_path}/smartgithg 52 + 53 + ${install_freedesktop_items} "${pkg_path}/bin" "$out" 51 54 ''; 52 55 53 56 meta = with stdenv.lib; {
+11
pkgs/applications/version-management/smartgithg/install_freedesktop_items.sh
··· 1 + #!/bin/sh 2 + 3 + inBinDir=$1 4 + out=$2 5 + 6 + cat $inBinDir/add-menuitem.sh | \ 7 + sed -re 's#xdg-icon-resource[ ]+install[ ]+--size[ ]+([0-9]+)[ ]+("[^"]+")[ ]+([$0-9a-zA-Z_]+)#mkdir -p '${out}'/share/icons/hicolor/\1x\1/apps \&\& cp \2 '${out}'/share/icons/hicolor/\1x\1/apps/\3\.png #' | \ 8 + sed -re 's#xdg-desktop-menu[ ]+install[ ]+([$0-9a-zA-Z_]+)#mkdir -p '${out}'/share/applications \&\& cp \1 '${out}'/share/applications/#' | \ 9 + sed -re 's#Exec="[^"]+"#Exec=smartgit#' | 10 + sed -re 's#SMARTGIT_BIN=.*#'SMARTGIT_BIN=${inBinDir}'#' \ 11 + | bash