mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-18 19:03:28 +00:00
Merge pull request #54298 from dtzWill/update/spin-6.4.9
spin: 6.4.8 -> 6.4.9
This commit is contained in:
commit
b71ed9c888
@ -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}
|
||||
|
Loading…
Reference in New Issue
Block a user