Merge pull request #54298 from dtzWill/update/spin-6.4.9

spin: 6.4.8 -> 6.4.9
This commit is contained in:
Pascal Wittmann 2019-01-20 12:35:51 +01:00 committed by GitHub
commit b71ed9c888
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -7,15 +7,16 @@ let
in stdenv.mkDerivation rec {
name = "spin-${version}";
version = "6.4.8";
version = "6.4.9";
url-version = stdenv.lib.replaceChars ["."] [""] version;
src = fetchurl {
# The homepage is behind CloudFlare anti-DDoS protection, which blocks cURL.
# Dropbox mirror from developers:
# https://www.dropbox.com/sh/fgzipzp4wpo3qc1/AADZPqS4aoR-pjNF6OQXRLQHa
url = "https://www.dropbox.com/sh/fgzipzp4wpo3qc1/AADya1lOBJZDbgWGrUSq-dfHa/spin${url-version}.tar.gz?raw=1";
sha256 = "1rvamdsf0igzpndlr4ck7004jw9x1bg4xyf78zh5k9sp848vnd80";
# (note that this URL doesn't work aross versions and hash should come from official site)
url = "https://www.dropbox.com/sh/fgzipzp4wpo3qc1/AABtxFePMJmPxsxSvU5cpxh8a/spin${url-version}.tar.gz?raw=1";
sha256 = "07b7wk3qyfnp4pgwicqd33l7i1krzyihx0cf9zkv81ywaklf5vll";
};
nativeBuildInputs = [ makeWrapper ];
@ -24,6 +25,8 @@ in stdenv.mkDerivation rec {
sourceRoot = "Spin/Src${version}";
installPhase = ''
install -Dm644 ../Man/spin.1 $out/share/man/man1/spin.1
install -Dm755 spin $out/bin/spin
wrapProgram $out/bin/spin \
--prefix PATH : ${binPath}