git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #115929 from marsam/fix-nix-linter-build

nix-linter: fix build

commit793bc75c811ba532a3fe7d9d278f5bf60846312c authorSandro <sandro.jaeckel@gmail.com> dateThu 11 Mar 2021, 23:40 (6 years ago) parenta5d6ab48ba5d0e
1 file changed+4−8
pkgs/development/tools/analysis/nix-linter/default.nix+4−8
pkgs/development/tools/analysis/nix-linter/default.nix+4−8
@@ -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";