Skip to content

Instantly share code, notes, and snippets.

@grahamc
Created February 18, 2020 02:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save grahamc/cef69ef0869fed90b727e79c12909162 to your computer and use it in GitHub Desktop.
Save grahamc/cef69ef0869fed90b727e79c12909162 to your computer and use it in GitHub Desktop.
{ pkgs ? import <nixpkgs> {}, super ? pkgs }:
pkgs.enableDebugging (super.emacs26.overrideAttrs (
{ buildInputs, configureFlags ? [], postPatch ? "", nativeBuildInputs ? [], ... }:
{
src = ./emacs;
/*
src = builtins.fetchGit {
url = "https://github.com/masm11/emacs";
ref = "pgtk";
};
*/
/*
src = pkgs.fetchFromGitHub {
owner = "masm11";
repo = "emacs";
rev = "5313395fd45d872913f0de96edf57ce7a23153bd";
sha256 = "11p0i1xsn2nxg3p2rnpvjbs66yswv32d4s1kkmj6pqgcgski0irj";
}*/
patches = [];
buildInputs = buildInputs ++ [ pkgs.wayland pkgs.wayland-protocols];
nativeBuildInputs = nativeBuildInputs ++ [ pkgs.autoreconfHook pkgs.texinfo ];
configureFlags = configureFlags ++ [ "--without-x" "--with-cairo" "--with-modules" ];
/*
postPatch = ''
${postPatch}
substituteInPlace Makefile.in --replace /usr/bin/glib-compile-schemas glib-compile-schemas
'';
*/
}
))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment