@@ -1,7 +1,6 @@
11{ lib
22, mkDerivation
33, fetchFromGitHub
4−, fetchpatch
54, fixplate
65, tasty
76, tasty-hunit
@@ -37,13 +36,10 @@ mkDerivation rec {
3736 executableHaskellDepends = [ streamly mtl path pretty-terminal text base aeson cmdargs containers hnix bytestring path-io ];
3837 testHaskellDepends = [ tasty tasty-hunit tasty-th ];
3938
40− patches = [
41− # raise upper bound on hnix https://github.com/Synthetica9/nix-linter/pull/46
42− (fetchpatch {
43− url = "https://github.com/Synthetica9/nix-linter/commit/b406024e525977b3c69d78d6a94a683e2ded121f.patch";
44− sha256 = "0viwbprslcmy70bxy3v27did79nqhlc0jcx4kp0lycswaccvnp1j";
45− })
46− ];
39+ # Relax upper bound on hnix https://github.com/Synthetica9/nix-linter/pull/46
40+ postPatch = ''
41+ substituteInPlace nix-linter.cabal --replace "hnix >=0.8 && < 0.11" "hnix >=0.8"
42+ '';
4743
4844 description = "Linter for Nix(pkgs), based on hnix";
4945 homepage = "https://github.com/Synthetica9/nix-linter";