From 55967f022c3436edee7a2c64db32bf582fc80b0b Mon Sep 17 00:00:00 2001 From: Bartosz Stebel Date: Sun, 12 Apr 2026 22:57:56 +0200 Subject: [PATCH] ltfs: init at 2.4.8.4-10522 --- pkgs/by-name/lt/ltfs/package.nix | 61 ++++++++++++++++++++++++++++++++ 1 file changed, 61 insertions(+) create mode 100644 pkgs/by-name/lt/ltfs/package.nix diff --git a/pkgs/by-name/lt/ltfs/package.nix b/pkgs/by-name/lt/ltfs/package.nix new file mode 100644 index 0000000000000..39b600cf60375 --- /dev/null +++ b/pkgs/by-name/lt/ltfs/package.nix @@ -0,0 +1,61 @@ +{ + lib, + stdenv, + fetchFromGitHub, + autoconf, + automake, + autoreconfHook, + fuse, + icu78, + net-snmp, + libuuid, + libtool, + libxml2, + pkg-config, +}: + +stdenv.mkDerivation (finalAttrs: { + version = "2.4.8.4-10522"; + pname = "ltfs"; + strictDeps = true; + __structuredAttrs = true; + + src = fetchFromGitHub { + tag = "v${finalAttrs.version}"; + fetchSubmodules = true; + owner = "LinearTapeFileSystem"; + repo = "ltfs"; + hash = "sha256-E3qMdZL7UF/phUjayxLGBLpDG9rDXzG5cFECY+tlNlM="; + }; + + nativeBuildInputs = [ + autoconf + automake + autoreconfHook + icu78 + libtool + net-snmp + pkg-config + ]; + + buildInputs = [ + fuse + icu78 + libuuid + libxml2 + ]; + + configureFlags = [ + "CFLAGS=-Wno-declaration-after-statement" + "--enable-fast" + ]; + + meta = { + description = "Reference implementation of the open-source tape filesystem standard ltfs"; + homepage = "https://github.com/LinearTapeFileSystem/ltfs"; + license = lib.licenses.bsd3; + platforms = with lib.platforms; linux ++ darwin ++ freebsd ++ netbsd; + broken = stdenv.hostPlatform.isDarwin; + maintainers = with lib.maintainers; [ implr ]; + }; +})