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