Skip to content

Commit

Permalink
xpar: init at 0.5
Browse files Browse the repository at this point in the history
  • Loading branch information
mrbenjadmin committed Oct 29, 2024
1 parent 70dea0f commit 974f6b6
Showing 1 changed file with 41 additions and 0 deletions.
41 changes: 41 additions & 0 deletions pkgs/by-name/xp/xpar/package.nix
Original file line number Diff line number Diff line change
@@ -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";
};
})

0 comments on commit 974f6b6

Please sign in to comment.