1{ lib, stdenv, fetchFromGitHub, rustPlatform, pkg-config, openssl, Security }:
2
3rustPlatform.buildRustPackage rec {
4 pname = "git-backup";
5 version = "0.2.0";
6
7 src = fetchFromGitHub {
8 owner = "jsdw";
9 repo = pname;
10 rev = "v${version}";
11 sha256 = "0h31j8clvk4gkw4mgva9p0ypf26zhf7f0y564fdmzyw6rsz9wzcj";
12 };
13
14 cargoSha256 = "0lb53sk7rikmj365gvcvn1hq70d6dmhp0aj2dyipb2qasypqz5l3";
15
16 nativeBuildInputs = [ pkg-config ];
17
18 buildInputs = [ openssl ] ++ lib.optionals stdenv.isDarwin [ Security ];
19
20 meta = with lib; {
21 homepage = "https://github.com/jsdw/git-backup";
22 description = "A tool to help you backup your git repositories from services like GitHub";
23 license = licenses.mit;
24 maintainers = [ maintainers.marsam ];
25 };
26}