Skip to content
This repository has been archived by the owner on Apr 12, 2021. It is now read-only.

Commit

Permalink
hugo: apply upstream patch to call rst2html directly on Nix
Browse files Browse the repository at this point in the history
Initially, rst2html was called via the python interpreter which would
fail if the script was wrapped in a launcher as on NixOS.
  • Loading branch information
shreyanshk committed Oct 12, 2018
1 parent ae2bb82 commit d4f88f1
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion pkgs/applications/misc/hugo/default.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{ stdenv, buildGoPackage, fetchFromGitHub }:
{ stdenv, buildGoPackage, fetchFromGitHub, fetchpatch }:

buildGoPackage rec {
name = "hugo-${version}";
Expand All @@ -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";
Expand Down

0 comments on commit d4f88f1

Please sign in to comment.