nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 rustPlatform,
4 fetchFromGitHub,
5}:
6
7rustPlatform.buildRustPackage rec {
8 pname = "conserve";
9 version = "24.8.0";
10
11 src = fetchFromGitHub {
12 owner = "sourcefrog";
13 repo = "conserve";
14 rev = "v${version}";
15 hash = "sha256-rdZTx0wFFtWt3EcpvWHY6m+8TEHEj53vhVpdRp5wbos=";
16 };
17
18 cargoHash = "sha256-r14ApN9kGWIyeNlbqrb+vOvvmH2n+O5ovvtSVNTMASo=";
19
20 checkFlags = [
21 # expected to panic if unix user has no secondary group,
22 # which is the case in the nix sandbox
23 "--skip=test_fixtures::test::arbitrary_secondary_group_is_found"
24 "--skip=chgrp_reported_as_changed"
25 ];
26
27 meta = {
28 description = "Robust portable backup tool in Rust";
29 homepage = "https://github.com/sourcefrog/conserve";
30 license = lib.licenses.gpl2Only;
31 maintainers = with lib.maintainers; [ happysalada ];
32 mainProgram = "conserve";
33 };
34}