Add nix-shell for development, add hint in CONTRIBUTING.md (#207)

This commit is contained in:
Sebastian Sellmeier 2021-05-15 13:00:01 +02:00 committed by GitHub
parent 929205022c
commit 4544ec7e86
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 16 additions and 0 deletions

View file

@ -9,4 +9,6 @@ please notify the maintainer @AUTplayed via a mention (like used here with the @
Also, in case of adding new dependencies, please notify @AUTplayed and @m1m3-50. Also, in case of adding new dependencies, please notify @AUTplayed and @m1m3-50.
For nix-users: We include a nix-shell for development :-)
Thanks Thanks

14
shell.nix Normal file
View file

@ -0,0 +1,14 @@
{
pkgs ? import /run/nixpkgs {},
lib ? pkgs.lib,
...
}:
with lib;
pkgs.mkShell {
buildInputs = with pkgs; [ bc coreutils i3lock-color gawk gnugrep gnused imagemagick procps shellcheck xorg.xdpyinfo xorg.xrandr xorg.xset ];
shellHooks = ''
alias i3lock="i3lock-color"
'';
}