aboutsummaryrefslogtreecommitdiff
path: root/default.nix
blob: fa427108cb40daa5ce915e7eafdedeafb8152b00 (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 = "0hazg86j3c7fsc9fpdi34wy782xznljwhpmnz5ah5ppwc7gxyxfb";

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

  doCheck = false;
}