From 4b00d53b593db19566422866909f96c4ca662914 Mon Sep 17 00:00:00 2001 From: mrbenjadmin Date: Tue, 29 Oct 2024 16:58:10 -0400 Subject: [PATCH] xpar: init at 0.5 --- pkgs/by-name/xp/xpar/package.nix | 41 ++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 pkgs/by-name/xp/xpar/package.nix diff --git a/pkgs/by-name/xp/xpar/package.nix b/pkgs/by-name/xp/xpar/package.nix new file mode 100644 index 000000000000..0409a1351b70 --- /dev/null +++ b/pkgs/by-name/xp/xpar/package.nix @@ -0,0 +1,41 @@ +{ + lib, + stdenv, + fetchFromGitHub, + autoreconfHook, + nasm, +}: + +stdenv.mkDerivation (finalAttrs: { + pname = "xpar"; + version = "0.5"; + + src = fetchFromGitHub { + owner = "kspalaiologos"; + repo = "xpar"; + rev = finalAttrs.version; + hash = "sha256-DMUDWQqYSQjGxYOpcfwNaaM21avcZ1w3IqEhuOaabrw="; + }; + + nativeBuildInputs = [ + autoreconfHook + ] ++ lib.optionals stdenv.hostPlatform.isx86_64 [ nasm ]; + + configureFlags = + [ + "--disable-arch-native" + "--enable-lto" + ] + ++ lib.optional stdenv.hostPlatform.isx86_64 "--enable-x86-64" + ++ lib.optional stdenv.hostPlatform.isAarch64 "--enable-aarch64"; + + meta = { + description = "Error/erasure code system guarding data integrity"; + homepage = "https://github.com/kspalaiologos/xpar"; + changelog = "https://github.com/kspalaiologos/xpar/blob/${finalAttrs.version}/NEWS"; + license = lib.licenses.gpl3Plus; + maintainers = with lib.maintainers; [ mrbenjadmin ]; + platforms = lib.platforms.all; + mainProgram = "xpar"; + }; +})