aboutsummaryrefslogtreecommitdiff
path: root/shell.nix
blob: 75e06bdf3811b4156f874cbae0fb0e9ccd693621 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
{ pkgs ? import <nixpkgs> {} }:

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 ];
}