nix-linter: fix compatibility with hnix≥0.13.0
This commit is contained in:
parent
31404dd2a2
commit
96178f4afd
@ -17,6 +17,7 @@
|
|||||||
, containers
|
, containers
|
||||||
, hnix
|
, hnix
|
||||||
, bytestring
|
, bytestring
|
||||||
|
, fetchpatch
|
||||||
}:
|
}:
|
||||||
|
|
||||||
mkDerivation rec {
|
mkDerivation rec {
|
||||||
@ -36,10 +37,13 @@ mkDerivation rec {
|
|||||||
executableHaskellDepends = [ streamly mtl path pretty-terminal text base aeson cmdargs containers hnix bytestring path-io ];
|
executableHaskellDepends = [ streamly mtl path pretty-terminal text base aeson cmdargs containers hnix bytestring path-io ];
|
||||||
testHaskellDepends = [ tasty tasty-hunit tasty-th ];
|
testHaskellDepends = [ tasty tasty-hunit tasty-th ];
|
||||||
|
|
||||||
# Relax upper bound on hnix https://github.com/Synthetica9/nix-linter/pull/46
|
patches = [
|
||||||
postPatch = ''
|
# Fix compatibility with hnix≥0.13.0 https://github.com/Synthetica9/nix-linter/pull/51
|
||||||
substituteInPlace nix-linter.cabal --replace "hnix >=0.8 && < 0.11" "hnix >=0.8"
|
(fetchpatch {
|
||||||
'';
|
url = "https://github.com/Synthetica9/nix-linter/commit/f73acacd8623dc25c9a35f8e04e4ff33cc596af8.patch";
|
||||||
|
sha256 = "139fm21hdg3vcw8hv35kxj4awd52bjqbb76mpzx191hzi9plj8qc";
|
||||||
|
})
|
||||||
|
];
|
||||||
|
|
||||||
description = "Linter for Nix(pkgs), based on hnix";
|
description = "Linter for Nix(pkgs), based on hnix";
|
||||||
homepage = "https://github.com/Synthetica9/nix-linter";
|
homepage = "https://github.com/Synthetica9/nix-linter";
|
||||||
|
Loading…
Reference in New Issue
Block a user