Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
46 lines
884 B
Nix
46 lines
884 B
Nix
{
|
|
lib,
|
|
rustPlatform,
|
|
fetchFromGitHub,
|
|
rust-cbindgen,
|
|
}:
|
|
|
|
rustPlatform.buildRustPackage {
|
|
pname = "orz";
|
|
version = "1.6.2-unstable-2024-11-08";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "richox";
|
|
repo = "orz";
|
|
rev = "c828a50f18a309d4715741056db74941e6a98867";
|
|
hash = "sha256-PVso4ufBwxhF1yhzIkIwSbRJdnH9h8gn3nreWQJDMn4=";
|
|
};
|
|
|
|
cargoHash = "sha256-vbhK4jHNhCI1nFv2pVOtjlxQe+b7NMP14z2Tk+no8Vs=";
|
|
|
|
outputs = [
|
|
"out"
|
|
"dev"
|
|
"lib"
|
|
];
|
|
|
|
nativeBuildInputs = [
|
|
rust-cbindgen
|
|
];
|
|
|
|
postInstall = ''
|
|
cbindgen -o $dev/include/orz.h
|
|
|
|
mkdir -p $lib
|
|
mv $out/lib "$lib"
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "High performance, general purpose data compressor written in rust";
|
|
homepage = "https://github.com/richox/orz";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ figsoda ];
|
|
mainProgram = "orz";
|
|
};
|
|
}
|