From 4544ec7e8633b07479bfc9b3f2d546f718c7ec81 Mon Sep 17 00:00:00 2001 From: Sebastian Sellmeier Date: Sat, 15 May 2021 13:00:01 +0200 Subject: [PATCH] Add nix-shell for development, add hint in CONTRIBUTING.md (#207) --- CONTRIBUTING.md | 2 ++ shell.nix | 14 ++++++++++++++ 2 files changed, 16 insertions(+) create mode 100644 shell.nix diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 92e4994..83d6eeb 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -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. +For nix-users: We include a nix-shell for development :-) + Thanks diff --git a/shell.nix b/shell.nix new file mode 100644 index 0000000..7bf3c65 --- /dev/null +++ b/shell.nix @@ -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" + ''; +}