diff options
Diffstat (limited to 'default.nix')
-rw-r--r-- | default.nix | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/default.nix b/default.nix new file mode 100644 index 0000000..fa42710 --- /dev/null +++ b/default.nix @@ -0,0 +1,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; +} |