aboutsummaryrefslogtreecommitdiff
path: root/default.nix
blob: 93148263c1d8227de1eb329656ff568d7044b58f (plain)
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
{ pkgs ? import <nixpkgs> {} }:
with builtins;
with pkgs;

rustPlatform.buildRustPackage rec {
  pname = "rpb-s3";
  version = "0.1.0";

  ignore = map toString [
    ./target
  ];
  src = filterSource (path: type: !elem path ignore) ./.;

  nativeBuildInputs = [ rustc cargo pkgconfig ];
  buildInputs = [ openssl ];

  RUST_BACKTRACE = "1";
  cargoSha256 = "1xk364zx477jrpxn5lfzczlqg2x781g1l18kxcfxbi68bjkp8lri";

  postInstall = ''
    ln -s $out/bin/rpb-s3 $out/bin/pb
  '';

  doCheck = false;
}