21 lines
291 B
Nix
21 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"'
|
||
|
|
||
|
'';
|
||
|
}
|
||
|
|