ticker/shell.nix

20 lines
373 B
Nix
Raw Normal View History

2019-10-07 00:33:44 +02:00
{ pkgs ? import <nixpkgs> {} }:
2019-10-26 01:14:49 +02:00
let
default = import ./default.nix { inherit pkgs; };
2019-10-26 01:14:49 +02:00
in
pkgs.stdenv.mkDerivation {
2019-10-07 00:33:44 +02:00
name = "env";
2019-10-26 01:14:49 +02:00
buildInputs =
2021-01-14 16:37:39 +01:00
with pkgs;
with rustPlatform.rust;
[ rustc cargo pkg-config ] ++
default.ticker-update.buildInputs ++
default.ticker-serve.buildInputs;
2019-10-07 00:33:44 +02:00
shellHook = ''
echo "Run 'cargo build --release'"
'';
}