nixpkgs-suyu/pkgs/development/tools/analysis/nix-linter/default.nix

53 lines
1.2 KiB
Nix
Raw Normal View History

2019-12-04 10:20:00 +01:00
{ lib
, mkDerivation
, fetchFromGitHub
2020-11-07 05:20:00 +01:00
, fetchpatch
2019-12-04 10:20:00 +01:00
, fixplate
, tasty
, tasty-hunit
, tasty-th
, streamly
, mtl
, path
, pretty-terminal
, text
, base
, aeson
2020-10-06 19:33:54 +02:00
, path-io
2019-12-04 10:20:00 +01:00
, cmdargs
, containers
, hnix
, bytestring
}:
mkDerivation rec {
pname = "nix-linter-unstable";
2020-10-06 19:33:54 +02:00
version = "2020-09-25";
2019-12-04 10:20:00 +01:00
src = fetchFromGitHub {
owner = "Synthetica9";
repo = "nix-linter";
2020-10-06 19:33:54 +02:00
rev = "2516a8cda41f9bb553a1c3eca38e3dd94ebf53de";
sha256 = "07mn2c9v67wsm57jlxv9pqac9hahw4618vngmj2sfbgihx8997kb";
2019-12-04 10:20:00 +01:00
};
isLibrary = false;
isExecutable = true;
2020-10-06 19:33:54 +02:00
libraryHaskellDepends = [ fixplate ];
executableHaskellDepends = [ streamly mtl path pretty-terminal text base aeson cmdargs containers hnix bytestring path-io ];
2019-12-04 10:20:00 +01:00
testHaskellDepends = [ tasty tasty-hunit tasty-th ];
2020-11-07 05:20:00 +01:00
patches = [
# raise upper bound on hnix https://github.com/Synthetica9/nix-linter/pull/46
(fetchpatch {
url = "https://github.com/Synthetica9/nix-linter/commit/b406024e525977b3c69d78d6a94a683e2ded121f.patch";
sha256 = "0viwbprslcmy70bxy3v27did79nqhlc0jcx4kp0lycswaccvnp1j";
})
];
2019-12-04 10:20:00 +01:00
description = "Linter for Nix(pkgs), based on hnix";
homepage = "https://github.com/Synthetica9/nix-linter";
license = lib.licenses.bsd3;
maintainers = [ lib.maintainers.marsam ];
}