about summary refs log tree commit diff
path: root/nixpkgs/pkgs/tools/security/bpb/default.nix
blob: 121c5674c08c54dbd5c6065497fd818b655c8243 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
{ stdenv
, lib
, rustPlatform
, fetchFromGitHub
}:

rustPlatform.buildRustPackage rec {
  pname = "bpb";
  version = "unstable-2018-07-27";

  src = fetchFromGitHub {
    owner = "withoutboats";
    repo = "bpb";
    rev = "b1ef5ca1d2dea0e2ec0b1616f087f110ea17adfa";
    sha256 = "sVfM8tlAsF4uKLxl3g/nSYgOx+znHIdPalSIiCd18o4=";
  };

  cargoSha256 = "7cARRJWRxF1kMySX6KcB6nrVf8k1p/nr3OyAwNLmztc=";

  # a nightly compiler is required unless we use this cheat code.
  RUSTC_BOOTSTRAP = 1;

  meta = with lib; {
    description = "Tool to automatically sign git commits, replacing gpg for that purpose";
    homepage = "https://github.com/withoutboats/bpb";
    license = licenses.mit;
    maintainers = with maintainers; [ jtojnar ];
  };
}