Skip to content

Commit

Permalink
Merge #80714: icon-lang: fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
vcunat committed Mar 2, 2020
2 parents a2afee9 + 420b444 commit 4d954e5
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
14 changes: 13 additions & 1 deletion pkgs/development/interpreters/icon-lang/default.nix
@@ -1,4 +1,4 @@
{ stdenv, fetchFromGitHub, libX11, libXt , withGraphics ? true }:
{ stdenv, fetchFromGitHub, fetchpatch, libX11, libXt, withGraphics ? true }:

stdenv.mkDerivation rec {
pname = "icon-lang";
Expand All @@ -12,6 +12,18 @@ stdenv.mkDerivation rec {

buildInputs = stdenv.lib.optionals withGraphics [ libX11 libXt ];

patches = [
# Patch on git master, likely won't be necessary in future release
(fetchpatch {
url = "https://github.com/gtownsend/icon/commit/bfc4a6004d0d3984c8066289b8d8e563640c4ddd.patch";
sha256 = "1pqapjghk10rb73a1mfflki2wipjy4kvnravhmrilkqzb9hd6v8m";
excludes = [
"doc/relnotes.htm"
"src/h/version.h"
];
})
];

configurePhase =
let
_name = if stdenv.isDarwin then "macintosh" else "linux";
Expand Down
Expand Up @@ -57,7 +57,7 @@ let noweb = stdenv.mkDerivation rec {
# HACK: This is ugly, but functional.
PATH=$out/bin:$PATH make -BC xdoc
make "''${installFlags[@]}" install-man
make "''${installFlags[@]} install-man"
ln -s "$tex" "$out/share/texmf"
'';
Expand Down

0 comments on commit 4d954e5

Please sign in to comment.