1 { lib, stdenv, fetchFromGitHub, rustPlatform, pkg-config, openssl, Security }:
3 rustPlatform.buildRustPackage rec {
7 src = fetchFromGitHub {
11 sha256 = "0h31j8clvk4gkw4mgva9p0ypf26zhf7f0y564fdmzyw6rsz9wzcj";
15 lockFile = ./Cargo.lock;
18 nativeBuildInputs = [ pkg-config ];
20 buildInputs = [ openssl ] ++ lib.optionals stdenv.isDarwin [ Security ];
22 # update Cargo.lock to work with openssl 3
24 ln -sf ${./Cargo.lock} Cargo.lock
28 homepage = "https://github.com/jsdw/git-backup";
29 description = "A tool to help you backup your git repositories from services like GitHub";
30 license = licenses.mit;
31 maintainers = [ maintainers.marsam ];
32 mainProgram = "git-backup";