summary refs log tree commit diff
path: root/pkgs/development/tools/analysis/nix-linter
diff options
context:
space:
mode:
authorMario Rodas <marsam@users.noreply.github.com>2021-05-15 04:20:00 +0000
committerMario Rodas <marsam@users.noreply.github.com>2021-05-15 04:20:00 +0000
commit96178f4afd69889075de9365524086a0c4d53dfd (patch)
tree326e1a87acb77ac4f477758867e271c840e05c8c /pkgs/development/tools/analysis/nix-linter
parent31404dd2a2225d7e606b9a76317737d4ad8671de (diff)
downloadnixpkgs-96178f4afd69889075de9365524086a0c4d53dfd.tar
nixpkgs-96178f4afd69889075de9365524086a0c4d53dfd.tar.gz
nixpkgs-96178f4afd69889075de9365524086a0c4d53dfd.tar.bz2
nixpkgs-96178f4afd69889075de9365524086a0c4d53dfd.tar.lz
nixpkgs-96178f4afd69889075de9365524086a0c4d53dfd.tar.xz
nixpkgs-96178f4afd69889075de9365524086a0c4d53dfd.tar.zst
nixpkgs-96178f4afd69889075de9365524086a0c4d53dfd.zip
nix-linter: fix compatibility with hnix≥0.13.0
Diffstat (limited to 'pkgs/development/tools/analysis/nix-linter')
-rw-r--r--pkgs/development/tools/analysis/nix-linter/default.nix12
1 files changed, 8 insertions, 4 deletions
diff --git a/pkgs/development/tools/analysis/nix-linter/default.nix b/pkgs/development/tools/analysis/nix-linter/default.nix
index dea2fd895f1..279a69327fa 100644
--- a/pkgs/development/tools/analysis/nix-linter/default.nix
+++ b/pkgs/development/tools/analysis/nix-linter/default.nix
@@ -17,6 +17,7 @@
 , containers
 , hnix
 , bytestring
+, fetchpatch
 }:
 
 mkDerivation rec {
@@ -36,10 +37,13 @@ mkDerivation rec {
   executableHaskellDepends = [ streamly mtl path pretty-terminal text base aeson cmdargs containers hnix bytestring path-io ];
   testHaskellDepends = [ tasty tasty-hunit tasty-th ];
 
-  # 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"
-  '';
+  patches = [
+    # Fix compatibility with hnix≥0.13.0 https://github.com/Synthetica9/nix-linter/pull/51
+    (fetchpatch {
+      url = "https://github.com/Synthetica9/nix-linter/commit/f73acacd8623dc25c9a35f8e04e4ff33cc596af8.patch";
+      sha256 = "139fm21hdg3vcw8hv35kxj4awd52bjqbb76mpzx191hzi9plj8qc";
+    })
+  ];
 
   description = "Linter for Nix(pkgs), based on hnix";
   homepage = "https://github.com/Synthetica9/nix-linter";