Now Emacs works on the Macbook
This commit is contained in:
parent
b4d239d34b
commit
3f39ace857
9 changed files with 158 additions and 127 deletions
|
@ -1,6 +1,8 @@
|
|||
final: prev: {
|
||||
# keep sources this first
|
||||
sources = prev.callPackage (import ./_sources/generated.nix) {};
|
||||
customEmacs = prev.callPackage (import ./emacs) {};
|
||||
sources = prev.callPackage (import ./_sources/generated.nix) { };
|
||||
customEmacs = prev.callPackage (import ./emacs) { };
|
||||
ungoogled-chromium = import ./ungoogled-chromium { inherit prev; };
|
||||
vscodium = import ./vscodium { inherit prev; };
|
||||
# then, call packages with `final.callPackage`
|
||||
}
|
||||
|
|
10
pkgs/ungoogled-chromium/default.nix
Normal file
10
pkgs/ungoogled-chromium/default.nix
Normal file
|
@ -0,0 +1,10 @@
|
|||
{ prev, pkgs, ... }:
|
||||
|
||||
prev.runCommandNoCC "wrap-chromium"
|
||||
{ buildInputs = with pkgs; [ makeWrapper ]; }
|
||||
''
|
||||
makeWrapper ${c}/bin/chromium $out/bin/chromium \
|
||||
--add-flags "--enable-features=UseOzonePlatform" \
|
||||
--add-flags "--ozone-platform=wayland"
|
||||
ln -sf ${c}/share $out/share
|
||||
''
|
10
pkgs/vscodium/default.nix
Normal file
10
pkgs/vscodium/default.nix
Normal file
|
@ -0,0 +1,10 @@
|
|||
{ prev, pkgs, ... }:
|
||||
|
||||
prev.runCommandNoCC "codium"
|
||||
{ buildInputs = with pkgs; [ makeWrapper ]; }
|
||||
''
|
||||
makeWrapper ${prev.vscodium}/bin/codium $out/bin/codium \
|
||||
--add-flags "--enable-features=UseOzonePlatform" \
|
||||
--add-flags "--ozone-platform=wayland"
|
||||
ln -sf ${prev.vscodium}/share $out/share
|
||||
''
|
Loading…
Add table
Add a link
Reference in a new issue