Merge pull request #153282 from Stunkymonkey/treewide-github-3

treewide: switch to fetchFromGitHub

authored by Bobby Rong and committed by GitHub a8a800ec bd201361

+57 -36
+6 -4
pkgs/development/libraries/libfaketime/default.nix
··· 1 - { lib, stdenv, fetchurl, perl, coreutils }: 1 + { lib, stdenv, fetchFromGitHub, perl, coreutils }: 2 2 3 3 stdenv.mkDerivation rec { 4 4 pname = "libfaketime"; 5 5 version = "0.9.9"; 6 6 7 - src = fetchurl { 8 - url = "https://github.com/wolfcw/libfaketime/archive/v${version}.tar.gz"; 9 - sha256 = "sha256-V9AYEVA2HAqbXI7vBbETkvYTStosLZmOkuY9rtY5ZHw="; 7 + src = fetchFromGitHub { 8 + owner = "wolfcw"; 9 + repo = "libfaketime"; 10 + rev = "v${version}"; 11 + sha256 = "sha256-P1guVggteGtoq8+eeE966hDPkRwsn0m7oLCohyPrIb4="; 10 12 }; 11 13 12 14 patches = [
+6 -4
pkgs/development/libraries/libinotify-kqueue/default.nix
··· 1 - { lib, stdenv, fetchzip, autoreconfHook }: 1 + { lib, stdenv, fetchFromGitHub, autoreconfHook }: 2 2 3 3 stdenv.mkDerivation rec { 4 4 pname = "libinotify-kqueue"; 5 5 version = "20180201"; 6 6 7 - src = fetchzip { 8 - url = "https://github.com/libinotify-kqueue/libinotify-kqueue/archive/${version}.tar.gz"; 9 - sha256 = "0dkh6n0ghhcl7cjkjmpin118h7al6i4vlkmw57vip5f6ngr6q3pl"; 7 + src = fetchFromGitHub { 8 + owner = "libinotify-kqueue"; 9 + repo = "libinotify-kqueue"; 10 + rev = version; 11 + sha256 = "sha256-9A5s8rPGlRv3KbxOukk0VB2IQrDxVjklO5RB+IA1cDY="; 10 12 }; 11 13 12 14 nativeBuildInputs = [ autoreconfHook ];
+6 -4
pkgs/development/libraries/libmowgli/default.nix
··· 1 - { lib, stdenv, fetchurl }: 1 + { lib, stdenv, fetchFromGitHub }: 2 2 3 3 stdenv.mkDerivation rec { 4 4 pname = "libmowgli"; 5 5 version = "2.1.3"; 6 6 7 - src = fetchurl { 8 - url = "https://github.com/atheme/libmowgli-2/archive/v${version}.tar.gz"; 9 - sha256 = "0xx4vndmwz40pxa5gikl8z8cskpdl9a30i2i5fjncqzlp4pspymp"; 7 + src = fetchFromGitHub { 8 + owner = "atheme"; 9 + repo = "libmowgli-2"; 10 + rev = "v${version}"; 11 + sha256 = "sha256-jlw6ixMoIdIjmQ86N+KN+Gez218sw894POkcCYnT0s0="; 10 12 }; 11 13 12 14 meta = with lib; {
+6 -4
pkgs/development/libraries/libmx/default.nix
··· 1 - { lib, stdenv, fetchurl 1 + { lib, stdenv, fetchFromGitHub 2 2 , libtool, pkg-config, automake, autoconf, intltool 3 3 , glib, gobject-introspection, gtk2, gtk-doc 4 4 , clutter, clutter-gtk ··· 8 8 pname = "libmx"; 9 9 version = "1.4.7"; 10 10 11 - src = fetchurl { 12 - url = "https://github.com/clutter-project/mx/archive/${version}.tar.gz"; 13 - sha256 = "8a7514ea33c1dec7251d0141e24a702e7701dc9f00348cbcf1816925b7f74dbc"; 11 + src = fetchFromGitHub { 12 + owner = "clutter-project"; 13 + repo = "mx"; 14 + rev = version; 15 + sha256 = "sha256-+heIPSkg3d22xsU48UOTJ9FPLXC7zLivcnabQOM9aEk="; 14 16 }; 15 17 16 18 # remove the following superfluous checks
+6 -4
pkgs/development/python-modules/pyside/apiextractor.nix
··· 1 - { lib, stdenv, fetchurl, cmake, libxml2, libxslt, python3, qt4 }: 1 + { lib, stdenv, fetchFromGitHub, cmake, libxml2, libxslt, python3, qt4 }: 2 2 3 3 # This derivation does not provide any Python module and should therefore be called via `all-packages.nix`. 4 4 let ··· 8 8 pname = "pyside-apiextractor"; 9 9 version = "0.10.10"; 10 10 11 - src = fetchurl { 12 - url = "https://github.com/PySide/Apiextractor/archive/${version}.tar.gz"; 13 - sha256 = "1zj8yrxy08iv1pk38djxw3faimm226w6wmi0gm32w4yczblylwz3"; 11 + src = fetchFromGitHub { 12 + owner = "PySide"; 13 + repo = "Apiextractor"; 14 + rev = version; 15 + sha256 = "sha256-YH8aYyzv59xiIglZbdNgOPnmEQwNE2GmotAFFfFdMlg="; 14 16 }; 15 17 16 18 outputs = [ "out" "dev" ];
+7 -6
pkgs/development/python-modules/pyside/generatorrunner.nix
··· 1 - { lib, stdenv, fetchurl, cmake, pysideApiextractor, python3, qt4 }: 1 + { lib, stdenv, fetchFromGitHub, cmake, pysideApiextractor, python3, qt4 }: 2 2 3 3 # This derivation does not provide any Python module and should therefore be called via `all-packages.nix`. 4 4 let 5 5 pythonEnv = python3.withPackages(ps: with ps; [ sphinx ]); 6 + in stdenv.mkDerivation rec { 6 7 pname = "pyside-generatorrunner"; 7 8 version = "0.6.16"; 8 - in stdenv.mkDerivation { 9 - name = "${pname}-${version}"; 10 9 11 - src = fetchurl { 12 - url = "https://github.com/PySide/Generatorrunner/archive/0.6.16.tar.gz"; 13 - sha256 = "0vzk3cp0pfbhd921r8f1xkcz96znla39dhj074k623x9k26lj2sj"; 10 + src = fetchFromGitHub { 11 + owner = "PySide"; 12 + repo = "Generatorrunner"; 13 + rev = version; 14 + sha256 = "sha256-JAghKY033RTD5b2elitzVQbbN3PMmT3BHwpqx8N5EYg="; 14 15 }; 15 16 16 17 outputs = [ "out" "dev" ];
+6 -3
pkgs/development/tools/continuous-integration/laminar/default.nix
··· 1 1 { stdenv 2 2 , lib 3 3 , fetchurl 4 + , fetchFromGitHub 4 5 , cmake 5 6 , capnproto 6 7 , sqlite ··· 25 26 in stdenv.mkDerivation rec { 26 27 pname = "laminar"; 27 28 version = "1.1"; 28 - src = fetchurl { 29 - url = "https://github.com/ohwgiles/laminar/archive/${version}.tar.gz"; 30 - sha256 = "1lzfmfjygmbdr2n1q49kwwffw8frz5y6iczhdz5skwmzwg0chbsf"; 29 + src = fetchFromGitHub { 30 + owner = "ohwgiles"; 31 + repo = "laminar"; 32 + rev = version; 33 + sha256 = "sha256-9JiFO5Vi/NT/o7v/KXZw3/P5s5qQwmQXjrQq+uUXHQk="; 31 34 }; 32 35 patches = [ ./patches/no-network.patch ]; 33 36 nativeBuildInputs = [ cmake pandoc ];
+6 -3
pkgs/games/nxengine-evo/default.nix
··· 1 1 { lib, stdenv 2 2 , fetchpatch 3 3 , fetchurl 4 + , fetchFromGitHub 4 5 , cmake 5 6 , libpng 6 7 , SDL2 ··· 10 11 stdenv.mkDerivation rec { 11 12 pname = "nxengine-evo"; 12 13 version = "2.6.4"; 13 - src = fetchurl { 14 - url = "https://github.com/nxengine/nxengine-evo/archive/v${version}.tar.gz"; 15 - sha256 = "1xir74l0vrzrpyl7sfqfxp083dakbix26hd0arwf2y57w1mbjas8"; 14 + src = fetchFromGitHub { 15 + owner = "nxengine"; 16 + repo = "nxengine-evo"; 17 + rev = "v${version}"; 18 + sha256 = "sha256-krK2b1E5JUMxRoEWmb3HZMNSIHfUUGXSpyb4/Zdp+5A="; 16 19 }; 17 20 assets = fetchurl { 18 21 url = "https://github.com/nxengine/nxengine-evo/releases/download/v${version}/NXEngine-v${version}-Linux.tar.xz";
+8 -4
pkgs/tools/networking/badvpn/default.nix
··· 1 - { lib, stdenv, fetchurl, cmake, openssl, nss, pkg-config, nspr, bash, debug ? false }: 1 + { lib, stdenv, fetchFromGitHub, cmake, openssl, nss, pkg-config, nspr, bash, debug ? false }: 2 2 3 3 stdenv.mkDerivation rec { 4 4 pname = "badvpn"; 5 5 version = "1.999.130"; 6 - src = fetchurl { 7 - url = "https://github.com/ambrop72/badvpn/archive/${version}.tar.gz"; 8 - sha256 = "sha256-v9S7/r1ydLzseSVYyaL9YOOc2S4EZzglreXQQVR2YQk="; 6 + 7 + src = fetchFromGitHub { 8 + owner = "ambrop72"; 9 + repo = "badvpn"; 10 + rev = version; 11 + sha256 = "sha256-bLTDpq3ohUP+KooPvhv1/AZfdo0HwB3g9QOuE2E/pmY="; 9 12 }; 13 + 10 14 nativeBuildInputs = [ cmake pkg-config ]; 11 15 buildInputs = [ 12 16 openssl