summary refs log tree commit diff
path: root/pkgs/development/tools/analysis/nix-linter/default.nix
blob: 5895be0208b5083cd6b90be20ddba77292ec0bab (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
{ lib
, mkDerivation
, fetchFromGitHub
, parallel-io
, fixplate
, pandoc
, tasty
, tasty-hunit
, tasty-th
, streamly
, mtl
, path-io
, path
, pretty-terminal
, text
, base
, aeson
, cmdargs
, containers
, hnix
, bytestring
}:

mkDerivation rec {
  pname = "nix-linter-unstable";
  version = "2019-04-26";

  src = fetchFromGitHub {
    owner = "Synthetica9";
    repo = "nix-linter";
    rev = "4aaf60195cd2d9f9e2345fbdf4aac48e1451292c";
    sha256 = "0c7rcjaxd8z0grwambsw46snv7cg66h3pszw3549z4xz0i60yq87";
  };

  isLibrary = false;
  isExecutable = true;
  libraryHaskellDepends = [ parallel-io fixplate pandoc ];
  executableHaskellDepends = [ streamly mtl path-io path pretty-terminal text base aeson cmdargs containers hnix bytestring ];
  testHaskellDepends = [ tasty tasty-hunit tasty-th ];

  description = "Linter for Nix(pkgs), based on hnix";
  homepage = "https://github.com/Synthetica9/nix-linter";
  license = lib.licenses.bsd3;
  maintainers = [ lib.maintainers.marsam ];
}