From 8aaecc9093be8531c7c25e24b6b2464536458eee Mon Sep 17 00:00:00 2001 From: Justin Bedo Date: Mon, 2 Nov 2020 11:17:05 +1100 Subject: init --- shell.nix | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 shell.nix (limited to 'shell.nix') diff --git a/shell.nix b/shell.nix new file mode 100644 index 0000000..75e06bd --- /dev/null +++ b/shell.nix @@ -0,0 +1,22 @@ +{ pkgs ? import {} }: + +with pkgs; + +let + style-check = + stdenv.mkDerivation rec { + name = "style-check"; + src = fetchurl { + url = "http://www.cs.umd.edu/~nspring/software/style-check-current.tar.gz"; + sha256 = "06g1ni28fdbrg2yaa6x8z3kg1mrjvhi48qv45hb80fwyrvy0ds1a"; + }; + installPhase = '' + make PREFIX=$out SYSCONFDIR=$out/etc/style-check.d/ install + sed -ie "s|/etc/style-check.d|$out/etc/style-check.d|g" $out/bin/style-check.rb + ''; + buildInputs = [ ruby ]; + }; + +in mkShell { + buildInputs = with pkgs; [ (callPackage ./tex.nix {}) style-check proselint pandoc ]; +} -- cgit v1.2.3