nixos-config/pkgs/lektor-with-plugins/lektor-git/default.nix
Ingolf Wagner 54bab918d7
init
2019-10-24 02:24:33 +02:00

20 lines
291 B
Nix

{ 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"'
'';
}