nixpkgs/pkgs/tools/backup/rdedup/default.nix
stuebinm ff1a94e523 treewide: add meta.mainProgram to packages with a single binary
The nixpkgs-unstable channel's programs.sqlite was used to identify
packages producing exactly one binary, and these automatically added
to their package definitions wherever possible.
2024-03-19 03:14:51 +01:00

30 lines
831 B
Nix

{ lib, stdenv, fetchFromGitHub, rustPlatform, pkg-config, openssl, libsodium
, xz
, Security }:
rustPlatform.buildRustPackage rec {
pname = "rdedup";
version = "3.2.1";
src = fetchFromGitHub {
owner = "dpc";
repo = "rdedup";
rev = "v${version}";
sha256 = "sha256-GEYP18CaCQShvCg8T7YTvlybH1LNO34KBxgmsTv2Lzs=";
};
cargoSha256 = "sha256-I6d3IyPBcUsrvlzF7W0hFM4hcXi4wWro9bCeP4eArHI=";
nativeBuildInputs = [ pkg-config rustPlatform.bindgenHook ];
buildInputs = [ openssl libsodium xz ]
++ (lib.optional stdenv.isDarwin Security);
meta = with lib; {
description = "Data deduplication with compression and public key encryption";
mainProgram = "rdedup";
homepage = "https://github.com/dpc/rdedup";
license = licenses.mpl20;
maintainers = with maintainers; [ dywedir ];
};
}