-
Notifications
You must be signed in to change notification settings - Fork 25
/
default.nix
40 lines (35 loc) · 1006 Bytes
/
default.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
{ pkgs ? import <nixpkgs> {}
, trivialBuild ? pkgs.emacsPackages.trivialBuild
# user arguments
, packageSrc ? ./.
, packageVersion ? "git"
}:
trivialBuild rec {
pname = "emacs-webkit";
src = packageSrc;
version = packageVersion;
buildPhase = ''
make all
export LD_LIBRARY_PATH=$PWD:$LD_LIBRARY_PATH
'';
nativeBuildInputs = with pkgs; [ pkg-config wrapGAppsHook ];
gstBuildInputs = with pkgs; with gst_all_1; [
gstreamer gst-libav
gst-plugins-base
gst-plugins-good
gst-plugins-bad
gst-plugins-ugly
];
buildInputs = with pkgs; [
webkitgtk
glib gtk3
glib-networking
gsettings-desktop-schemas
] ++ gstBuildInputs;
GIO_EXTRA_MODULES = "${pkgs.glib-networking}/lib/gio/modules:${pkgs.dconf.lib}/lib/gio/modules";
GST_PLUGIN_SYSTEM_PATH_1_0 = pkgs.lib.concatMapStringsSep ":" (p: "${p}/lib/gstreamer-1.0") gstBuildInputs;
postInstall = ''
cp *.so *.js *.css $out/share/emacs/site-lisp/
mkdir $out/lib && cp *.so $out/lib/
'';
}