nixpkgs/pkgs/by-name/un/unfs3/package.nix
aleksana 571c71e6f7 treewide: migrate packages to pkgs/by-name, take 1
We are migrating packages that meet below requirements:

1. using `callPackage`
2. called path is a directory
3. overriding set is empty (`{ }`)
4. not containing path expressions other than relative path (to
makenixpkgs-vet happy)
5. not referenced by nix files outside of the directory, other
than`pkgs/top-level/all-packages.nix`
6. not referencing nix files outside of the directory
7. not referencing `default.nix` (since it's changed to `package.nix`)
8. `outPath` doesn't change after migration

The tool is here: https://github.com/Aleksanaa/by-name-migrate.
2024-11-09 20:04:51 +08:00

53 lines
1.3 KiB
Nix

{ fetchFromGitHub
, lib
, stdenv
, flex
, bison
, autoreconfHook
, pkg-config
, libtirpc
}:
stdenv.mkDerivation rec {
pname = "unfs3";
version = "0.10.0";
src = fetchFromGitHub {
owner = "unfs3";
repo = pname;
rev = "refs/tags/${pname}-${version}";
hash = "sha256-5iAriIutBhwyZVS7AG2fnkrHOI7pNAKfYv062Cy0WXw=";
};
nativeBuildInputs = [ flex bison autoreconfHook pkg-config ];
buildInputs = [ libtirpc ];
configureFlags = [ "--disable-shared" ];
doCheck = false; # no test suite
meta = {
description = "User-space NFSv3 file system server";
longDescription = ''
UNFS3 is a user-space implementation of the NFSv3 server
specification. It provides a daemon for the MOUNT and NFS
protocols, which are used by NFS clients for accessing files on the
server.
'';
# 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 = [ ];
};
}