1{ lib, fetchFromGitHub
2, libiconv
3, openssl
4, pkg-config
5, rustPlatform
6, stdenv
7, Security
8, SystemConfiguration
9}:
10
11rustPlatform.buildRustPackage rec {
12 pname = "git-quickfix";
13 version = "0.1.0";
14
15 src = fetchFromGitHub {
16 owner = "siedentop";
17 repo = pname;
18 rev = "v${version}";
19 sha256 = "sha256-IAjet/bDG/Hf/whS+yrEQSquj8s5DEmFis+5ysLLuxs=";
20 };
21
22 doCheck = false;
23
24 nativeBuildInputs = [ pkg-config ];
25 buildInputs = [ openssl ] ++ lib.optionals stdenv.isDarwin [
26 Security
27 SystemConfiguration
28 libiconv
29 ];
30
31 cargoSha256 = "sha256-eTAEf2nRrJ7i2Dw5BBZlLLu8mK2G/wUk40ivtfxk1pI=";
32
33 meta = with lib; {
34 description = "Quickfix allows you to commit changes in your git repository to a new branch without leaving the current branch";
35 homepage = "https://github.com/siedentop/git-quickfix";
36 license = licenses.gpl3;
37 platforms = platforms.all;
38 maintainers = with maintainers; [ cafkafk ];
39 mainProgram = "git-quickfix";
40 };
41}