diff options
author | figsoda <figsoda@pm.me> | 2021-11-11 13:39:35 -0500 |
---|---|---|
committer | Matthieu Coudron <teto@users.noreply.github.com> | 2021-11-13 17:33:43 +0100 |
commit | 5aaa5f5e75b3795e8f40d18dce211f50cceb6693 (patch) | |
tree | cce980a486e90c201b4a7a28fdbf6ec83dd10c7f /pkgs/applications/editors/kakoune | |
parent | e29d818477aa67a4def398e2b510437ecfbd4704 (diff) | |
download | nixlib-5aaa5f5e75b3795e8f40d18dce211f50cceb6693.tar nixlib-5aaa5f5e75b3795e8f40d18dce211f50cceb6693.tar.gz nixlib-5aaa5f5e75b3795e8f40d18dce211f50cceb6693.tar.bz2 nixlib-5aaa5f5e75b3795e8f40d18dce211f50cceb6693.tar.lz nixlib-5aaa5f5e75b3795e8f40d18dce211f50cceb6693.tar.xz nixlib-5aaa5f5e75b3795e8f40d18dce211f50cceb6693.tar.zst nixlib-5aaa5f5e75b3795e8f40d18dce211f50cceb6693.zip |
pluginupdate.py: fix compatibility with nix 2.4
Diffstat (limited to 'pkgs/applications/editors/kakoune')
-rw-r--r-- | pkgs/applications/editors/kakoune/plugins/update-shell.nix | 15 | ||||
-rwxr-xr-x | pkgs/applications/editors/kakoune/plugins/update.py | 2 |
2 files changed, 16 insertions, 1 deletions
diff --git a/pkgs/applications/editors/kakoune/plugins/update-shell.nix b/pkgs/applications/editors/kakoune/plugins/update-shell.nix new file mode 100644 index 000000000000..ca83f09c7154 --- /dev/null +++ b/pkgs/applications/editors/kakoune/plugins/update-shell.nix @@ -0,0 +1,15 @@ +{ pkgs ? import ../../../../.. { } }: + +with pkgs; +let + pyEnv = python3.withPackages (ps: [ ps.GitPython ]); +in + +mkShell { + packages = [ + bash + pyEnv + nix + nix-prefetch-scripts + ]; +} diff --git a/pkgs/applications/editors/kakoune/plugins/update.py b/pkgs/applications/editors/kakoune/plugins/update.py index 40a28d9afe2c..9f5f64f9e5b3 100755 --- a/pkgs/applications/editors/kakoune/plugins/update.py +++ b/pkgs/applications/editors/kakoune/plugins/update.py @@ -1,5 +1,5 @@ #!/usr/bin/env nix-shell -#!nix-shell -p nix-prefetch-git -p python3 -p python3Packages.GitPython nix -i python3 +#!nix-shell update-shell.nix -i python3 # format: # $ nix run nixpkgs.python3Packages.black -c black update.py |