nixos-config/pkgs/lektor-with-plugins/lektor-git/default.nix

21 lines
291 B
Nix
Raw Normal View History

2019-10-24 02:20:38 +02:00
{ pkgs, ... }:
pkgs.python36.pkgs.buildPythonPackage {
name = "lektor-git";
version = "0.1";
src = ./.;
prePatch = ''
ls -lah
substituteInPlace lektor_git.py \
--replace \
'subprocess.run(["git"' \
'subprocess.run(["${pkgs.git}/bin/git"'
'';
}