Building?

This commit is contained in:
Andrea Ciceri 2021-10-14 10:35:16 +02:00
parent 9237779561
commit 741d9b5b6a
No known key found for this signature in database
GPG key ID: A1FC89532D1C5654
6 changed files with 36 additions and 58 deletions

View file

@ -2,7 +2,5 @@ final: prev: {
# keep sources this first
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`
}

View file

@ -1,10 +0,0 @@
{ prev, ... }:
prev.runCommandNoCC "wrap-chromium"
{ buildInputs = with prev.pkgs; [ makeWrapper ]; }
''
makeWrapper ${prev.pkgs.chromium}/bin/chromium $out/bin/chromium \
--add-flags "--enable-features=UseOzonePlatform" \
--add-flags "--ozone-platform=wayland"
ln -sf ${prev.pkgs.chromium}/share $out/share
''

View file

@ -1,10 +0,0 @@
{ prev, ... }:
prev.runCommandNoCC "codium"
{ buildInputs = with prev.pkgs; [ makeWrapper ]; }
''
makeWrapper ${prev.pkgs.vscodium}/bin/codium $out/bin/codium \
--add-flags "--enable-features=UseOzonePlatform" \
--add-flags "--ozone-platform=wayland"
ln -sf ${prev.pkgs.vscodium}/share $out/share
''