Merge pull request #144241 from Stunkymonkey/applications-github-1

authored by

Sandro and committed by
GitHub
b9529207 788fceee

+228 -121
+48 -38
pkgs/applications/audio/cadence/default.nix
··· 3 3 , coreutils 4 4 , libjack2 5 5 , fetchpatch 6 - , fetchzip 6 + , fetchFromGitHub 7 7 , jack_capture 8 8 , pkg-config 9 9 , pulseaudioFull ··· 20 20 version = "0.9.1"; 21 21 pname = "cadence"; 22 22 23 - src = fetchzip { 24 - url = "https://github.com/falkTX/Cadence/archive/v${version}.tar.gz"; 25 - sha256 = "07z8grnnpkd0nf3y3r6qjlk1jlzrbhdrp9mnhrhhmws54p1bhl20"; 23 + src = fetchFromGitHub { 24 + owner = "falkTX"; 25 + repo = "Cadence"; 26 + rev = "v${version}"; 27 + sha256 = "sha256-QFC4wiVF8wphhrammxtc+VMZJpXY5OGHs6DNa21+6B8="; 26 28 }; 27 29 28 30 patches = [ ··· 39 41 ]; 40 42 41 43 postPatch = '' 42 - libjackso=$(realpath ${lib.makeLibraryPath [libjack2]}/libjack.so.0); 43 - substituteInPlace ./src/jacklib.py --replace libjack.so.0 $libjackso 44 - substituteInPlace ./src/cadence.py --replace "/usr/bin/pulseaudio" \ 45 - "${lib.makeBinPath[pulseaudioFull]}/pulseaudio" 46 - substituteInPlace ./c++/jackbridge/JackBridge.cpp --replace libjack.so.0 $libjackso 44 + libjackso=$(realpath ${lib.makeLibraryPath [libjack2]}/libjack.so.0); 45 + substituteInPlace ./src/jacklib.py --replace libjack.so.0 $libjackso 46 + substituteInPlace ./src/cadence.py --replace "/usr/bin/pulseaudio" \ 47 + "${lib.makeBinPath[pulseaudioFull]}/pulseaudio" 48 + substituteInPlace ./c++/jackbridge/JackBridge.cpp --replace libjack.so.0 $libjackso 47 49 ''; 48 50 49 51 nativeBuildInputs = [ ··· 54 56 qtbase 55 57 jack_capture 56 58 pulseaudioFull 57 - ((python3.withPackages (ps: with ps; [ 58 - pyqt5 59 - dbus-python 60 - ]))) 59 + ( 60 + (python3.withPackages (ps: with ps; [ 61 + pyqt5 62 + dbus-python 63 + ])) 64 + ) 61 65 ]; 62 66 63 67 makeFlags = [ ··· 68 72 dontWrapQtApps = true; 69 73 70 74 # Replace with our own wrappers. They need to be changed manually since it wouldn't work otherwise. 71 - preFixup = let 72 - outRef = placeholder "out"; 73 - prefix = "${outRef}/share/cadence/src"; 74 - scriptAndSource = lib.mapAttrs' (script: source: 75 - lib.nameValuePair ("${outRef}/bin/" + script) ("${prefix}/" + source) 76 - ) { 77 - "cadence" = "cadence.py"; 78 - "claudia" = "claudia.py"; 79 - "catarina" = "catarina.py"; 80 - "catia" = "catia.py"; 81 - "cadence-jacksettings" = "jacksettings.py"; 82 - "cadence-aloop-daemon" = "cadence_aloop_daemon.py"; 83 - "cadence-logs" = "logs.py"; 84 - "cadence-render" = "render.py"; 85 - "claudia-launcher" = "claudia_launcher.py"; 86 - "cadence-session-start" = "cadence_session_start.py"; 87 - }; 88 - in lib.mapAttrsToList (script: source: '' 89 - rm -f ${script} 90 - makeQtWrapper ${source} ${script} \ 91 - --prefix PATH : "${lib.makeBinPath [ 92 - jack_capture # cadence-render 93 - pulseaudioFull # cadence, cadence-session-start 94 - ]}" 95 - '') scriptAndSource; 75 + preFixup = 76 + let 77 + outRef = placeholder "out"; 78 + prefix = "${outRef}/share/cadence/src"; 79 + scriptAndSource = lib.mapAttrs' 80 + (script: source: 81 + lib.nameValuePair ("${outRef}/bin/" + script) ("${prefix}/" + source) 82 + ) 83 + { 84 + "cadence" = "cadence.py"; 85 + "claudia" = "claudia.py"; 86 + "catarina" = "catarina.py"; 87 + "catia" = "catia.py"; 88 + "cadence-jacksettings" = "jacksettings.py"; 89 + "cadence-aloop-daemon" = "cadence_aloop_daemon.py"; 90 + "cadence-logs" = "logs.py"; 91 + "cadence-render" = "render.py"; 92 + "claudia-launcher" = "claudia_launcher.py"; 93 + "cadence-session-start" = "cadence_session_start.py"; 94 + }; 95 + in 96 + lib.mapAttrsToList 97 + (script: source: '' 98 + rm -f ${script} 99 + makeQtWrapper ${source} ${script} \ 100 + --prefix PATH : "${lib.makeBinPath [ 101 + jack_capture # cadence-render 102 + pulseaudioFull # cadence, cadence-session-start 103 + ]}" 104 + '') 105 + scriptAndSource; 96 106 97 107 meta = { 98 108 homepage = "https://github.com/falkTX/Cadence/";
+44 -9
pkgs/applications/audio/hybridreverb2/default.nix
··· 1 - { lib, stdenv, fetchFromGitHub, fetchzip, cmake, pkg-config, lv2, alsa-lib, libjack2, 2 - freetype, libX11, gtk3, pcre, libpthreadstubs, libXdmcp, libxkbcommon, 3 - epoxy, at-spi2-core, dbus, curl, fftwFloat }: 1 + { lib 2 + , stdenv 3 + , fetchFromGitHub 4 + , cmake 5 + , pkg-config 6 + , lv2 7 + , alsa-lib 8 + , libjack2 9 + , freetype 10 + , libX11 11 + , gtk3 12 + , pcre 13 + , libpthreadstubs 14 + , libXdmcp 15 + , libxkbcommon 16 + , epoxy 17 + , at-spi2-core 18 + , dbus 19 + , curl 20 + , fftwFloat 21 + }: 4 22 5 23 let 6 24 pname = "HybridReverb2"; ··· 10 28 in 11 29 12 30 stdenv.mkDerivation rec { 13 - name = "${pname}-${version}"; 31 + inherit pname version; 14 32 15 - impulseDB = fetchzip { 16 - url = "https://github.com/${owner}/${pname}-impulse-response-database/archive/v${DBversion}.zip"; 17 - sha256 = "1hlfxbbkahm1k2sk3c3n2mjaz7k80ky3r55xil8nfbvbv0qan89z"; 33 + impulseDB = fetchFromGitHub { 34 + inherit owner; 35 + repo = "HybridReverb2-impulse-response-database"; 36 + rev = "v${DBversion}"; 37 + sha256 = "sha256-PyGrMNhrL2cRjb2UPPwEaJ6vZBV2sDG1mKFCNdfqjsI="; 18 38 }; 19 39 20 40 src = fetchFromGitHub { ··· 26 46 }; 27 47 28 48 nativeBuildInputs = [ pkg-config cmake ]; 29 - buildInputs = [ lv2 alsa-lib libjack2 freetype libX11 gtk3 pcre 30 - libpthreadstubs libXdmcp libxkbcommon epoxy at-spi2-core dbus curl fftwFloat ]; 49 + buildInputs = [ 50 + lv2 51 + alsa-lib 52 + libjack2 53 + freetype 54 + libX11 55 + gtk3 56 + pcre 57 + libpthreadstubs 58 + libXdmcp 59 + libxkbcommon 60 + epoxy 61 + at-spi2-core 62 + dbus 63 + curl 64 + fftwFloat 65 + ]; 31 66 32 67 cmakeFlags = [ 33 68 "-DHybridReverb2_AdvancedJackStandalone=ON"
+28 -6
pkgs/applications/audio/hydrogen/0.nix
··· 1 - { lib, stdenv, fetchurl, pkg-config, cmake 2 - , alsa-lib, boost, glib, lash, libjack2, libarchive, libsndfile, lrdf, qt4 1 + { lib 2 + , stdenv 3 + , fetchFromGitHub 4 + , pkg-config 5 + , cmake 6 + , alsa-lib 7 + , boost 8 + , glib 9 + , lash 10 + , libjack2 11 + , libarchive 12 + , libsndfile 13 + , lrdf 14 + , qt4 3 15 }: 4 16 5 17 stdenv.mkDerivation rec { 6 18 version = "0.9.7"; 7 19 pname = "hydrogen"; 8 20 9 - src = fetchurl { 10 - url = "https://github.com/hydrogen-music/hydrogen/archive/${version}.tar.gz"; 11 - sha256 = "1dy2jfkdw0nchars4xi4isrz66fqn53a9qk13bqza7lhmsg3s3qy"; 21 + src = fetchFromGitHub { 22 + owner = "hydrogen-music"; 23 + repo = "hydrogen"; 24 + rev = version; 25 + sha256 = "sha256-6ycNUcumtAEl/6XbIpW6JglGv4nNOdMrOJ1nvJg3z/c="; 12 26 }; 13 27 14 28 nativeBuildInputs = [ pkg-config cmake ]; 15 29 buildInputs = [ 16 - alsa-lib boost glib lash libjack2 libarchive libsndfile lrdf qt4 30 + alsa-lib 31 + boost 32 + glib 33 + lash 34 + libjack2 35 + libarchive 36 + libsndfile 37 + lrdf 38 + qt4 17 39 ]; 18 40 19 41 meta = with lib; {
+17 -7
pkgs/applications/audio/ladspa-plugins/default.nix
··· 1 - { lib, stdenv, fetchurl, autoreconfHook, automake, fftw, ladspaH, libxml2, pkg-config 2 - , perlPackages }: 1 + { lib 2 + , stdenv 3 + , fetchFromGitHub 4 + , autoreconfHook 5 + , automake 6 + , fftw 7 + , ladspaH 8 + , libxml2 9 + , pkg-config 10 + , perlPackages 11 + }: 3 12 4 13 stdenv.mkDerivation rec { 5 14 pname = "swh-plugins"; 6 15 version = "0.4.17"; 7 16 8 - 9 - src = fetchurl { 10 - url = "https://github.com/swh/ladspa/archive/v${version}.tar.gz"; 11 - sha256 = "1rqwh8xrw6hnp69dg4gy336bfbfpmbx4fjrk0nb8ypjcxkz91c6i"; 17 + src = fetchFromGitHub { 18 + owner = "swh"; 19 + repo = "ladspa"; 20 + rev = "v${version}"; 21 + sha256 = "sha256-eOtIhNcuItREUShI8JRlBVKfMfovpdfIYu+m37v4KLE="; 12 22 }; 13 23 14 24 nativeBuildInputs = [ autoreconfHook pkg-config ]; 15 - buildInputs = [ fftw ladspaH libxml2 perlPackages.perl perlPackages.XMLParser ]; 25 + buildInputs = [ fftw ladspaH libxml2 perlPackages.perl perlPackages.XMLParser ]; 16 26 17 27 patchPhase = '' 18 28 patchShebangs .
+6 -4
pkgs/applications/audio/swh-lv2/default.nix
··· 1 - { lib, stdenv, fetchurl, fftwSinglePrec, libxslt, lv2, pkg-config }: 1 + { lib, stdenv, fetchFromGitHub, fftwSinglePrec, libxslt, lv2, pkg-config }: 2 2 3 3 stdenv.mkDerivation rec { 4 4 pname = "swh-lv2"; 5 5 version = "1.0.16"; 6 6 7 - src = fetchurl { 8 - url = "https://github.com/swh/lv2/archive/v${version}.tar.gz"; 9 - sha256 = "0j1mih0lp4fds07knp5i32in515sh0df1qi6694pmyz2wqnm295w"; 7 + src = fetchFromGitHub { 8 + owner = "swh"; 9 + repo = "lv2"; 10 + rev = "v${version}"; 11 + sha256 = "sha256-v6aJUWDbBZEmz0v6+cSCi/KhOYNUeK/MJLUSgzi39ng="; 10 12 }; 11 13 12 14 patchPhase = ''
+9 -6
pkgs/applications/blockchains/particl-core/default.nix
··· 1 - { lib, stdenv 1 + { lib 2 + , stdenv 2 3 , autoreconfHook 3 4 , boost 4 5 , db48 5 - , fetchurl 6 + , fetchFromGitHub 6 7 , libevent 7 8 , miniupnpc 8 9 , openssl ··· 19 20 pname = "particl-core"; 20 21 version = "0.19.2.14"; 21 22 22 - src = fetchurl { 23 - url = "https://github.com/particl/particl-core/archive/v${version}.tar.gz"; 24 - sha256 = "sha256-UMU3384r4RGVl0/7OPwdDva09vhQr+9Lqb1oD/PTva8="; 23 + src = fetchFromGitHub { 24 + owner = "particl"; 25 + repo = "particl-core"; 26 + rev = "v${version}"; 27 + sha256 = "sha256-gJLEMfEvQ35xjKt8iN/FXi2T/GBMSS7eUqOC8XHKPBg="; 25 28 }; 26 29 27 30 nativeBuildInputs = [ pkg-config autoreconfHook ]; ··· 41 44 42 45 meta = { 43 46 description = "Privacy-Focused Marketplace & Decentralized Application Platform"; 44 - longDescription= '' 47 + longDescription = '' 45 48 An open source, decentralized privacy platform built for global person to person eCommerce. 46 49 RPC daemon and CLI client only. 47 50 '';
+6 -4
pkgs/applications/misc/fme/default.nix
··· 1 1 { lib 2 2 , stdenv 3 - , fetchurl 3 + , fetchFromGitHub 4 4 , autoconf 5 5 , automake 6 6 , bc ··· 17 17 pname = "fme"; 18 18 version = "1.1.3"; 19 19 20 - src = fetchurl { 21 - url = "https://github.com/rdehouss/fme/archive/v${version}.tar.gz"; 22 - hash = "sha256-0cgaajjA+q0ClDrWXW0DFL0gXG3oQWaaLv5D5MUD5j0="; 20 + src = fetchFromGitHub { 21 + owner = "rdehouss"; 22 + repo = "fme"; 23 + rev = "v${version}"; 24 + sha256 = "sha256-P67OmExBdWM6NZhDyYceVJOZiy8RC+njk/QvgQcWZeQ="; 23 25 }; 24 26 25 27 nativeBuildInputs = [
+25 -8
pkgs/applications/networking/instant-messengers/ricochet/default.nix
··· 1 - { mkDerivation, lib, fetchurl, pkg-config, makeDesktopItem 2 - , qtbase, qttools, qtmultimedia, qtquick1, qtquickcontrols 3 - , openssl, protobuf, qmake 1 + { mkDerivation 2 + , lib 3 + , fetchFromGitHub 4 + , pkg-config 5 + , makeDesktopItem 6 + , qtbase 7 + , qttools 8 + , qtmultimedia 9 + , qtquick1 10 + , qtquickcontrols 11 + , openssl 12 + , protobuf 13 + , qmake 4 14 }: 5 15 6 16 mkDerivation rec { 7 17 pname = "ricochet"; 8 18 version = "1.1.4"; 9 19 10 - src = fetchurl { 11 - url = "https://github.com/ricochet-im/ricochet/archive/v${version}.tar.gz"; 12 - sha256 = "1kfj42ksvj7axc809lb8siqzj5hck2pib427b63a3ipnqc5h1faf"; 20 + src = fetchFromGitHub { 21 + owner = "ricochet-im"; 22 + repo = "ricochet"; 23 + rev = "v${version}"; 24 + sha256 = "sha256-CGVTHa0Hqj90WvB6ZbA156DVgzv/R7blsU550y2Ai9c="; 13 25 }; 14 26 15 27 desktopItem = makeDesktopItem { ··· 23 35 }; 24 36 25 37 buildInputs = [ 26 - qtbase qttools qtmultimedia qtquick1 qtquickcontrols 27 - openssl protobuf 38 + qtbase 39 + qttools 40 + qtmultimedia 41 + qtquick1 42 + qtquickcontrols 43 + openssl 44 + protobuf 28 45 ]; 29 46 30 47 nativeBuildInputs = [ pkg-config qmake ];
+9 -7
pkgs/applications/networking/instant-messengers/scudcloud/default.nix
··· 1 - { lib, fetchurl, python3Packages }: 1 + { lib, fetchFromGitHub, python3Packages }: 2 2 3 - let version = "1.63"; 4 - in python3Packages.buildPythonPackage { 5 - name = "scudcloud-${version}"; 3 + python3Packages.buildPythonPackage rec { 4 + pname = "scudcloud"; 5 + version = "1.63"; 6 6 7 - src = fetchurl { 8 - url = "https://github.com/raelgc/scudcloud/archive/v${version}.tar.gz"; 9 - sha256 = "e0d1cb72115d0fda17db92d28be51558ad8fe250972683fac3086dbe8d350d22"; 7 + src = fetchFromGitHub { 8 + owner = "raelgc"; 9 + repo = "scudcloud"; 10 + rev = "v${version}"; 11 + sha256 = "sha256-b8+MVjYKbSpnfM2ow2MNVY6MiT+urpNYDkFR/yUC7ik="; 10 12 }; 11 13 12 14 propagatedBuildInputs = with python3Packages; [ pyqt5_with_qtwebkit dbus-python jsmin ];
+7 -5
pkgs/applications/office/ib/controller/default.nix
··· 1 - { lib, stdenv, fetchurl, unzip, jdk, ib-tws, xpra }: 1 + { lib, stdenv, fetchFromGitHub, unzip, jdk, ib-tws, xpra }: 2 2 3 3 stdenv.mkDerivation rec { 4 4 version = "2.14.0"; 5 5 pname = "ib-controller"; 6 6 7 - src = fetchurl { 8 - url = "https://github.com/ib-controller/ib-controller/archive/${version}.tar.gz"; 9 - sha256 = "17a8bcgg9z3b4y38k035hm2lgvhmf8srlz59c7n2q3fdw2i95i68"; 7 + src = fetchFromGitHub { 8 + owner = "ib-controller"; 9 + repo = "ib-controller"; 10 + rev = version; 11 + sha256 = "sha256-R175CKb3uErjBNe73HEFMI+bNmmuH2nWGraCSh5bXwc="; 10 12 }; 11 13 12 14 nativeBuildInputs = [ unzip ]; ··· 148 150 fi 149 151 EOF 150 152 chmod u+x $out/bin/ib-gw-c 151 - ''; 153 + ''; 152 154 153 155 154 156 meta = with lib; {
+9 -8
pkgs/applications/office/mytetra/default.nix
··· 1 - { lib, mkDerivation, fetchurl, qmake, qtsvg, makeWrapper, xdg-utils }: 1 + { lib, mkDerivation, fetchFromGitHub, qmake, qtsvg, makeWrapper, xdg-utils }: 2 2 3 - let 3 + mkDerivation rec { 4 + pname = "mytetra"; 4 5 version = "1.44.55"; 5 - in mkDerivation { 6 - pname = "mytetra"; 7 - inherit version; 8 - src = fetchurl { 9 - url = "https://github.com/xintrea/mytetra_dev/archive/v.${version}.tar.gz"; 10 - sha256 = "13lmfvschm1xwr0ys2ykhs0bb83m2f39rk1jdd7zf8yxlqki4i6l"; 6 + 7 + src = fetchFromGitHub { 8 + owner = "xintrea"; 9 + repo = "mytetra_dev"; 10 + rev = "v.${version}"; 11 + sha256 = "sha256-jQXnDoLkqbDZxfsYKPDsTOE7p/BFeA8wEznpbkRVGdw="; 11 12 }; 12 13 13 14 nativeBuildInputs = [ qmake makeWrapper ];
+8 -9
pkgs/applications/version-management/git-and-tools/svn2git/default.nix
··· 1 - { lib, stdenv, fetchurl, ruby, makeWrapper, git }: 1 + { lib, stdenv, fetchFromGitHub, ruby, makeWrapper, git }: 2 2 3 - let 3 + stdenv.mkDerivation rec { 4 + pname = "svn2git"; 4 5 version = "2.4.0"; 5 - in 6 - stdenv.mkDerivation { 7 - pname = "svn2git"; 8 - inherit version; 9 6 10 - src = fetchurl { 11 - url = "https://github.com/nirvdrum/svn2git/archive/v${version}.tar.gz"; 12 - sha256 = "0ly2vrv6q31n0xhciwb7a1ilr5c6ndyi3bg81yfp4axiypps7l41"; 7 + src = fetchFromGitHub { 8 + owner = "nirvdrum"; 9 + repo = "svn2git"; 10 + rev = "v${version}"; 11 + sha256 = "sha256-w649l/WO68vYYxZOBKzI8XhGFkaSwWx/O3oVOtnGg6w="; 13 12 }; 14 13 15 14 nativeBuildInputs = [ ruby makeWrapper ];
+6 -5
pkgs/applications/version-management/gitinspector/default.nix
··· 1 - { lib, fetchzip, python2Packages}: 1 + { lib, fetchFromGitHub, python2Packages }: 2 2 3 3 python2Packages.buildPythonApplication rec { 4 4 pname = "gitinspector"; 5 5 version = "0.4.4"; 6 6 namePrefix = ""; 7 7 8 - src = fetchzip { 9 - url = "https://github.com/ejwa/gitinspector/archive/v${version}.tar.gz"; 10 - sha256 = "1pfsw6xldm6jigs3nhysvqaxk8a0zf8zczgfkrp920as9sya3c7m"; 11 - name = "${pname}-${version}" + "-src"; 8 + src = fetchFromGitHub { 9 + owner = "ejwa"; 10 + repo = "gitinspector"; 11 + rev = "v${version}"; 12 + sha256 = "sha256-9bChvE5aAZFunu599pH7QKHZFd7aQzv0i9LURrvh2t0="; 12 13 }; 13 14 14 15 checkInputs = with python2Packages; [
+6 -5
pkgs/applications/version-management/gitstats/default.nix
··· 1 - { lib, stdenv, fetchzip, perl, python2, gnuplot, coreutils, gnugrep }: 1 + { lib, stdenv, fetchFromGitHub, perl, python2, gnuplot, coreutils, gnugrep }: 2 2 3 3 stdenv.mkDerivation rec { 4 4 pname = "gitstats"; 5 5 version = "2016-01-08"; 6 6 7 7 # upstream does not make releases 8 - src = fetchzip { 9 - url = "https://github.com/hoxu/gitstats/archive/55c5c285558c410bb35ebf421245d320ab9ee9fa.zip"; 10 - sha256 = "1bfcwhksylrpm88vyp33qjby4js31zcxy7w368dzjv4il3fh2i59"; 11 - name = "${pname}-${version}" + "-src"; 8 + src = fetchFromGitHub { 9 + owner = "hoxu"; 10 + repo = "gitstats"; 11 + rev = "55c5c285558c410bb35ebf421245d320ab9ee9fa"; 12 + sha256 = "sha256-qUQB3aCRbPkbMoMf39kPQ0vil8RjXL8RqjdTryfkzK0="; 12 13 }; 13 14 14 15 nativeBuildInputs = [ perl ];