Merge pull request #115929 from marsam/fix-nix-linter-build

nix-linter: fix build
This commit is contained in:
Sandro 2021-03-11 23:40:39 +01:00 committed by GitHub
commit 793bc75c81
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 8 deletions

View File

@ -1,7 +1,6 @@
{ lib { lib
, mkDerivation , mkDerivation
, fetchFromGitHub , fetchFromGitHub
, fetchpatch
, fixplate , fixplate
, tasty , tasty
, tasty-hunit , tasty-hunit
@ -37,13 +36,10 @@ 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 ];
patches = [ # Relax upper bound on hnix https://github.com/Synthetica9/nix-linter/pull/46
# raise upper bound on hnix https://github.com/Synthetica9/nix-linter/pull/46 postPatch = ''
(fetchpatch { substituteInPlace nix-linter.cabal --replace "hnix >=0.8 && < 0.11" "hnix >=0.8"
url = "https://github.com/Synthetica9/nix-linter/commit/b406024e525977b3c69d78d6a94a683e2ded121f.patch"; '';
sha256 = "0viwbprslcmy70bxy3v27did79nqhlc0jcx4kp0lycswaccvnp1j";
})
];
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";