nixos-config/pkgs/lektor-with-plugins/lektor-shell/shell.nix

23 lines
392 B
Nix
Raw Normal View History

2019-12-20 05:54:26 +01:00
{ pkgs ? import <nixpkgs> { } }:
2019-10-24 02:20:38 +02:00
let
bin = pkgs.python.pkgs.buildPythonPackage {
name = "lektor-shell";
src = ./.;
# propagatedBuildInputs = [ pytest numpy pkgs.libsndfile ];
};
2019-12-20 05:54:26 +01:00
in pkgs.mkShell {
2019-10-24 02:20:38 +02:00
# needed pkgs
# -----------
2019-12-20 05:54:26 +01:00
buildInputs = with pkgs; [ bin ];
2019-10-24 02:20:38 +02:00
# run this on start
# -----------------
shellHook = ''
HISTFILE=${toString ./.}/.history
'';
}