Browse Source

nixify

master
Astro 2 years ago
parent
commit
723992d159
  1. 13
      default.nix
  2. 15
      shell.nix

13
default.nix

@ -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

@ -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'"
'';
}
Loading…
Cancel
Save