Merge pull request #138526 from Stunkymonkey/servers-github

pkgs/servers: switch to fetchFromGitHub
This commit is contained in:
Sandro 2021-09-22 22:29:55 +02:00 committed by GitHub
commit eb4d6c858e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 54 additions and 30 deletions

View file

@ -1,12 +1,14 @@
{ lib, stdenv, fetchurl, installShellFiles, nixosTests }: { lib, stdenv, fetchFromGitHub, installShellFiles, nixosTests }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
version = "1.12"; version = "1.12";
pname = "beanstalkd"; pname = "beanstalkd";
src = fetchurl { src = fetchFromGitHub {
url = "https://github.com/kr/beanstalkd/archive/v${version}.tar.gz"; owner = "kr";
sha256 = "0gw8aygysnjzzfjgfzivy5vajla9adg2zcr4h8rrdf0xyykpwfpl"; repo = "beanstalkd";
rev = "v${version}";
hash = "sha256-HChpVZ02l08CObrb4+ZEjBiXeQMMYi6zhSWUTDxuEao=";
}; };
hardeningDisable = [ "fortify" ]; hardeningDisable = [ "fortify" ];

View file

@ -1,4 +1,4 @@
{ fetchurl, python2Packages, lib }: { fetchFromGitHub, python2Packages, lib }:
with python2Packages; with python2Packages;
@ -7,9 +7,11 @@ buildPythonApplication rec {
version = "3.0.1"; version = "3.0.1";
disabled = isPy3k; disabled = isPy3k;
src = fetchurl { src = fetchFromGitHub {
url = "https://github.com/CouchPotato/CouchPotatoServer/archive/build/${version}.tar.gz"; owner = "CouchPotato";
sha256 = "1xwjis3ijh1rff32mpdsphmsclf0lkpd3phpgxkccrigq1m9r3zh"; repo = "CouchPotatoServer";
rev = "build/${version}";
hash = "sha256-0k8MqLnqYjhHPE9/jncTFIj1T4F2aXU4mXdeEimDB7M=";
}; };
format = "other"; format = "other";

View file

@ -1,12 +1,14 @@
{ lib, stdenv, fetchurl, systemd, fcgi, autoreconfHook, pkg-config }: { lib, stdenv, fetchFromGitHub, systemd, fcgi, autoreconfHook, pkg-config }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "fcgiwrap"; pname = "fcgiwrap";
version = "1.1.0"; version = "1.1.0";
src = fetchurl { src = fetchFromGitHub {
url = "https://github.com/gnosek/fcgiwrap/archive/${version}.tar.gz"; owner = "gnosek";
sha256 = "07y6s4mm86cv7p1ljz94sxnqa89y9amn3vzwsnbq5hrl4vdy0zac"; repo = "fcgiwrap";
rev = version;
hash = "sha256-znAsZk+aB2XO2NK8Mjc+DLwykYKHolnVQPErlaAx3Oc=";
}; };
NIX_CFLAGS_COMPILE = "-Wno-error=implicit-fallthrough"; NIX_CFLAGS_COMPILE = "-Wno-error=implicit-fallthrough";

View file

@ -1,4 +1,4 @@
{ lib, stdenv, fetchurl, apacheHttpd }: { lib, stdenv, fetchFromGitHub, fetchurl, apacheHttpd }:
let let
apache-24-patch = fetchurl { apache-24-patch = fetchurl {
@ -11,9 +11,11 @@ stdenv.mkDerivation rec {
pname = "mod_fastcgi"; pname = "mod_fastcgi";
version = "2.4.7.1"; version = "2.4.7.1";
src = fetchurl { src = fetchFromGitHub {
url = "https://github.com/FastCGI-Archives/mod_fastcgi/archive/${version}.tar.gz"; owner = "FastCGI-Archives";
sha256 = "12g6vcfl9jl8rqf8lzrkdxg2ngca310d3d6an563xqcgrkp8ga55"; repo = "mod_fastcgi";
rev = version;
hash = "sha256-ovir59kCjKkgbraX23nsmzlMzGdeNTyj3MQd8cgvLsg=";
}; };
patches = [ apache-24-patch ]; patches = [ apache-24-patch ];
@ -42,5 +44,6 @@ stdenv.mkDerivation rec {
platforms = lib.platforms.linux; platforms = lib.platforms.linux;
maintainers = [ lib.maintainers.peti ]; maintainers = [ lib.maintainers.peti ];
broken = true; # patch 'compile-against-apache24.diff' no longer works
}; };
} }

View file

@ -1,12 +1,14 @@
{ lib, stdenv, fetchurl, apacheHttpd, python, ncurses }: { lib, stdenv, fetchFromGitHub, apacheHttpd, python, ncurses }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "mod_wsgi"; pname = "mod_wsgi";
version = "4.9.0"; version = "4.9.0";
src = fetchurl { src = fetchFromGitHub {
url = "https://github.com/GrahamDumpleton/mod_wsgi/archive/${version}.tar.gz"; owner = "GrahamDumpleton";
sha256 = "sha256-Cm84CvhUuFoxUeVKPDO1IMSm4hqZvK165d37/jGnS1A="; repo = "mod_wsgi";
rev = version;
hash = "sha256-gaWA6m4ENYtm88hCaoqrcIooA0TBI7Kj6fU6pPShoo4=";
}; };
buildInputs = [ apacheHttpd python ncurses ]; buildInputs = [ apacheHttpd python ncurses ];

View file

@ -1,13 +1,24 @@
{ lib, fetchurl, makeWrapper { lib
, perlPackages, flac, faad2, sox, lame, monkeysAudio, wavpack }: , fetchFromGitHub
, makeWrapper
, perlPackages
, flac
, faad2
, sox
, lame
, monkeysAudio
, wavpack
}:
perlPackages.buildPerlPackage rec { perlPackages.buildPerlPackage rec {
pname = "slimserver"; pname = "slimserver";
version = "7.9.2"; version = "7.9.2";
src = fetchurl { src = fetchFromGitHub {
url = "https://github.com/Logitech/slimserver/archive/${version}.tar.gz"; owner = "Logitech";
sha256 = "1rn9y7xvg5aqmgcbfpi7lcqy8d7hgwqx8b2llzpzrv7854zm1wcw"; repo = "slimserver";
rev = version;
hash = "sha256-P4CSu/ff6i48uWV5gXsJgayZ1S1s0RAqa5O5y3Y0g9Y=";
}; };
buildInputs = [ buildInputs = [

View file

@ -1,12 +1,14 @@
{ lib, stdenv, fetchurl, cmake, zeromq, cppzmq }: { lib, stdenv, fetchFromGitHub, cmake, zeromq, cppzmq }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "ursadb"; pname = "ursadb";
version = "1.2.0"; version = "1.2.0";
src = fetchurl { src = fetchFromGitHub {
url = "https://github.com/CERT-Polska/ursadb/archive/v${version}.tar.gz"; owner = "CERT-Polska";
sha256 = "10dax3mswq0x4cfrpi31b7ii7bxl536wz1j11b7f5c0zw9pjxzym"; repo = "ursadb";
rev = "v${version}";
hash = "sha256-/EK1CKJ0IR7fkKSpQkONbWcz6uhUoAwK430ljNYsV5U=";
}; };
installPhase = '' installPhase = ''