summary refs log tree commit diff
diff options
context:
space:
mode:
authorAdam Joseph <54836058+amjoseph-nixpkgs@users.noreply.github.com>2022-11-14 21:44:56 +0000
committerGitHub <noreply@github.com>2022-11-14 22:44:56 +0100
commitaa357fcf6e8af51b7c1c351a4d6a24f62f46ec19 (patch)
tree6b244a9877cc4a67419c102a5299f3a57c0832f7
parent9d84f4fe59d0d5dfcef5f0baf980862653177b36 (diff)
downloadnixpkgs-aa357fcf6e8af51b7c1c351a4d6a24f62f46ec19.tar
nixpkgs-aa357fcf6e8af51b7c1c351a4d6a24f62f46ec19.tar.gz
nixpkgs-aa357fcf6e8af51b7c1c351a4d6a24f62f46ec19.tar.bz2
nixpkgs-aa357fcf6e8af51b7c1c351a4d6a24f62f46ec19.tar.lz
nixpkgs-aa357fcf6e8af51b7c1c351a4d6a24f62f46ec19.tar.xz
nixpkgs-aa357fcf6e8af51b7c1c351a4d6a24f62f46ec19.tar.zst
nixpkgs-aa357fcf6e8af51b7c1c351a4d6a24f62f46ec19.zip
unfs3: 0.9.22 -> 0.10.0
Fixes the build.
-rw-r--r--pkgs/servers/unfs3/default.nix35
1 files changed, 25 insertions, 10 deletions
diff --git a/pkgs/servers/unfs3/default.nix b/pkgs/servers/unfs3/default.nix
index 363856a5842..afd1ac14970 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 <meta>
+    # 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;
   };
 }