1{ lib, stdenv, rustPlatform, fetchFromGitHub, pkg-config, openssl, curl, libiconv, Security }:
2
3rustPlatform.buildRustPackage rec {
4 pname = "git-subset";
5 version = "0.1.1";
6
7 src = fetchFromGitHub {
8 owner = "jasonwhite";
9 repo = pname;
10 rev = "v${version}";
11 sha256 = "02z2r0kcd0nnn1zjslp6xxam5ddbhrmzn67qzxhlamsw0p9vvkbb";
12 };
13
14 cargoSha256 = "0lc9m9prmhr4ipjh95cfczvlmpp9scryksvqd49h4acyr904n7ry";
15
16 nativeBuildInputs = [ pkg-config ];
17
18 buildInputs = [ openssl ] ++ lib.optionals stdenv.isDarwin [ curl libiconv Security ];
19
20 meta = with lib; {
21 description = "Super fast Git tree filtering";
22 homepage = "https://github.com/jasonwhite/git-subset";
23 license = licenses.mit;
24 maintainers = [ maintainers.marsam ];
25 };
26}