about summary refs log tree commit diff
diff options
context:
space:
mode:
authorShreyansh Khajanchi <shreyansh_k@live.com>2018-10-12 17:39:58 +0530
committerShreyansh Khajanchi <shreyansh_k@live.com>2018-10-12 17:39:58 +0530
commitd4f88f1d0c8b3d80f2b1b9a15a6cb91786be8076 (patch)
tree651846e16f90d4a04e1e2a53935c1eb5a9568110
parentae2bb82a8d3e6b33d37cf1eb41bbcfdf6e0fec71 (diff)
downloadnixlib-d4f88f1d0c8b3d80f2b1b9a15a6cb91786be8076.tar
nixlib-d4f88f1d0c8b3d80f2b1b9a15a6cb91786be8076.tar.gz
nixlib-d4f88f1d0c8b3d80f2b1b9a15a6cb91786be8076.tar.bz2
nixlib-d4f88f1d0c8b3d80f2b1b9a15a6cb91786be8076.tar.lz
nixlib-d4f88f1d0c8b3d80f2b1b9a15a6cb91786be8076.tar.xz
nixlib-d4f88f1d0c8b3d80f2b1b9a15a6cb91786be8076.tar.zst
nixlib-d4f88f1d0c8b3d80f2b1b9a15a6cb91786be8076.zip
hugo: apply upstream patch to call rst2html directly on Nix
Initially, rst2html was called via the python interpreter which would
fail if the script was wrapped in a launcher as on NixOS.
-rw-r--r--pkgs/applications/misc/hugo/default.nix9
1 files changed, 8 insertions, 1 deletions
diff --git a/pkgs/applications/misc/hugo/default.nix b/pkgs/applications/misc/hugo/default.nix
index a6a489492e31..c353a779b646 100644
--- a/pkgs/applications/misc/hugo/default.nix
+++ b/pkgs/applications/misc/hugo/default.nix
@@ -1,4 +1,4 @@
-{ stdenv, buildGoPackage, fetchFromGitHub }:
+{ stdenv, buildGoPackage, fetchFromGitHub, fetchpatch }:
 
 buildGoPackage rec {
   name = "hugo-${version}";
@@ -13,6 +13,13 @@ buildGoPackage rec {
     sha256 = "0n27vyg66jfx4lwswsmdlybly8c9gy5rk7yhy7wzs3rwzlqv1jzj";
   };
 
+  patches = [
+    (fetchpatch {
+      url = "https://github.com/gohugoio/hugo/commit/b137ad4dbd6d14d0a9af68c044aaee61f2c87fe5.diff";
+      sha256 = "0w1gpg11idqywqcpwzvx4xabn02kk8y4jmyz4h67mc3yh2dhq3ll";
+    })
+  ];
+
   goDeps = ./deps.nix;
 
   buildFlags = "-tags extended";