2020-04-24 23:36:52 +00:00
|
|
|
{ lib
|
|
|
|
, mkDerivation
|
|
|
|
, fetchFromGitHub
|
|
|
|
, fixplate
|
|
|
|
, tasty
|
|
|
|
, tasty-hunit
|
|
|
|
, tasty-th
|
|
|
|
, streamly
|
|
|
|
, mtl
|
|
|
|
, path
|
|
|
|
, pretty-terminal
|
|
|
|
, text
|
|
|
|
, base
|
|
|
|
, aeson
|
2020-10-07 09:15:18 +00:00
|
|
|
, path-io
|
2020-04-24 23:36:52 +00:00
|
|
|
, cmdargs
|
|
|
|
, containers
|
|
|
|
, hnix
|
|
|
|
, bytestring
|
|
|
|
}:
|
|
|
|
|
|
|
|
mkDerivation rec {
|
|
|
|
pname = "nix-linter-unstable";
|
2020-10-07 09:15:18 +00:00
|
|
|
version = "2020-09-25";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "Synthetica9";
|
|
|
|
repo = "nix-linter";
|
2020-10-07 09:15:18 +00:00
|
|
|
rev = "2516a8cda41f9bb553a1c3eca38e3dd94ebf53de";
|
|
|
|
sha256 = "07mn2c9v67wsm57jlxv9pqac9hahw4618vngmj2sfbgihx8997kb";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
isLibrary = false;
|
|
|
|
isExecutable = true;
|
2020-10-07 09:15:18 +00:00
|
|
|
libraryHaskellDepends = [ fixplate ];
|
|
|
|
executableHaskellDepends = [ streamly mtl path pretty-terminal text base aeson cmdargs containers hnix bytestring path-io ];
|
2020-04-24 23:36:52 +00:00
|
|
|
testHaskellDepends = [ tasty tasty-hunit tasty-th ];
|
|
|
|
|
2021-03-12 07:09:13 +00:00
|
|
|
# Relax upper bound on hnix https://github.com/Synthetica9/nix-linter/pull/46
|
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace nix-linter.cabal --replace "hnix >=0.8 && < 0.11" "hnix >=0.8"
|
|
|
|
'';
|
2020-11-09 15:59:12 +00:00
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Linter for Nix(pkgs), based on hnix";
|
|
|
|
homepage = "https://github.com/Synthetica9/nix-linter";
|
|
|
|
license = lib.licenses.bsd3;
|
|
|
|
maintainers = [ lib.maintainers.marsam ];
|
|
|
|
}
|