nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 rustPlatform,
4 fetchFromGitHub,
5 rust-cbindgen,
6}:
7
8rustPlatform.buildRustPackage {
9 pname = "orz";
10 version = "1.6.2-unstable-2024-11-08";
11
12 src = fetchFromGitHub {
13 owner = "richox";
14 repo = "orz";
15 rev = "c828a50f18a309d4715741056db74941e6a98867";
16 hash = "sha256-PVso4ufBwxhF1yhzIkIwSbRJdnH9h8gn3nreWQJDMn4=";
17 };
18
19 cargoHash = "sha256-vbhK4jHNhCI1nFv2pVOtjlxQe+b7NMP14z2Tk+no8Vs=";
20
21 outputs = [
22 "out"
23 "dev"
24 "lib"
25 ];
26
27 nativeBuildInputs = [
28 rust-cbindgen
29 ];
30
31 postInstall = ''
32 cbindgen -o $dev/include/orz.h
33
34 mkdir -p $lib
35 mv $out/lib "$lib"
36 '';
37
38 meta = with lib; {
39 description = "High performance, general purpose data compressor written in rust";
40 homepage = "https://github.com/richox/orz";
41 license = licenses.mit;
42 maintainers = with maintainers; [ figsoda ];
43 mainProgram = "orz";
44 };
45}