From aa357fcf6e8af51b7c1c351a4d6a24f62f46ec19 Mon Sep 17 00:00:00 2001 From: Adam Joseph <54836058+amjoseph-nixpkgs@users.noreply.github.com> Date: Mon, 14 Nov 2022 21:44:56 +0000 Subject: [PATCH] unfs3: 0.9.22 -> 0.10.0 Fixes the build. --- pkgs/servers/unfs3/default.nix | 35 ++++++++++++++++++++++++---------- 1 file changed, 25 insertions(+), 10 deletions(-) diff --git a/pkgs/servers/unfs3/default.nix b/pkgs/servers/unfs3/default.nix index 363856a58423..afd1ac14970b 100644 --- a/pkgs/servers/unfs3/default.nix +++ b/pkgs/servers/unfs3/default.nix @@ -1,15 +1,27 @@ -{ fetchurl, lib, stdenv, flex, bison }: +{ fetchFromGitHub +, lib +, stdenv +, flex +, bison +, autoreconfHook +, pkg-config +, libtirpc +}: stdenv.mkDerivation rec { pname = "unfs3"; - version = "0.9.22"; + version = "0.10.0"; - src = fetchurl { - url = "mirror://sourceforge/unfs3/${pname}-${version}.tar.gz"; - sha256 = "076zkyqkn56q0a8n3h65n1a68fknk4hrrp6mbhajq5s1wp5248j8"; + src = fetchFromGitHub { + owner = "unfs3"; + repo = pname; + rev = "refs/tags/${pname}-${version}"; + hash = "sha256-5iAriIutBhwyZVS7AG2fnkrHOI7pNAKfYv062Cy0WXw="; }; - nativeBuildInputs = [ flex bison ]; + nativeBuildInputs = [ flex bison autoreconfHook pkg-config ]; + + buildInputs = [ libtirpc ]; configureFlags = [ "--disable-shared" ]; @@ -25,13 +37,16 @@ stdenv.mkDerivation rec { server. ''; - homepage = "http://unfs3.sourceforge.net/"; + # The old http://unfs3.sourceforge.net/ has a + # http-equiv="refresh" pointing here, so we can assume that + # whoever controls the old URL approves of the "unfs3" github + # account. + homepage = "https://unfs3.github.io/"; + changelog = "https://raw.githubusercontent.com/unfs3/unfs3/unfs3-${version}/NEWS"; + mainProgram = "unfsd"; license = lib.licenses.bsd3; platforms = lib.platforms.unix; maintainers = [ ]; - - # https://github.com/unfs3/unfs3/issues/13 - broken = true; }; }