blog/shell.nix

32 lines
728 B
Nix
Raw Normal View History

2022-06-25 08:47:06 +01:00
let
pkgs = import <nixpkgs> {};
netlify-deployer = pkgs.python38Packages.buildPythonPackage rec {
pname = "netlify_deployer";
version = "0.5.2";
src = pkgs.python38Packages.fetchPypi {
inherit pname version;
sha256 = "aae0092b36e7408281ad73269b446c701edaacecc8ba1a07cc85671e3ddfae6e";
};
propagatedBuildInputs = with pkgs; with pkgs.python38Packages; [ requests git pbr wheel setuptools ];
doCheck = false;
};
customPython = pkgs.python38.buildEnv.override {
extraLibs = [ netlify-deployer ];
};
in
pkgs.mkShell {
buildInputs = with pkgs; with pkgs.python38Packages; [
git
hugo
cacert
requests
pip
virtualenv
customPython
];
}