This commit is contained in:
Astro 2019-10-07 00:33:44 +02:00
parent 258a859a76
commit 723992d159
2 changed files with 28 additions and 0 deletions

13
default.nix Normal file
View File

@ -0,0 +1,13 @@
{ pkgs ? import <nixpkgs> {} }:
with pkgs;
rustPlatform.buildRustPackage {
name = "ticker";
src = ./.;
buildInputs = [
pkg-config openssl
cargo rustc
];
cargoSha256 = "008404j5k9qgz5xcfg5d4q97lzhiqx5ljmi7jh1kmp9286669ix7";
}

15
shell.nix Normal file
View File

@ -0,0 +1,15 @@
{ pkgs ? import <nixpkgs> {} }:
with pkgs;
stdenv.mkDerivation {
name = "env";
buildInputs = [
pkg-config openssl
cargo rustc
];
shellHook = ''
echo "Run 'cargo build --release'"
'';
}