Skip to content

Instantly share code, notes, and snippets.

@thorhop
Last active August 29, 2015 14:15
Show Gist options
  • Select an option

  • Save thorhop/73fc583d075725ec8da2 to your computer and use it in GitHub Desktop.

Select an option

Save thorhop/73fc583d075725ec8da2 to your computer and use it in GitHub Desktop.
perl/Tk expression
{
Tk = buildPerlPackage rec {
name = "Tk-804.032";
src = fetchurl {
url = "http://search.cpan.org/CPAN/authors/id/S/SR/SREZIC/${name}.tar.gz";
sha256 = "0jarvplhfvnm0shhdm2a5zczlnk9mkf8jvfjiwyhjrr3cy1gl0w0";
};
makeMakerFlags = "X11LIB=${pkgs.xlibs.libX11}/lib";
buildInputs = with pkgs; [ xlibs.libX11 libpng ];
configurePhase = ''
perl Makefile.PL PREFIX=$out $makeMakerFlags
'';
doCheck = false;
meta ={
homepage = "http://search.cpan.org/~srezic/Tk-804.032/Tk.pod";
license = stdenv.lib.licenses.tcltk;
};
};
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment