Skip to content

Instantly share code, notes, and snippets.

  • Save aforemny/9f0b9f4662729b7ed2c597ba3a462b1a to your computer and use it in GitHub Desktop.
Save aforemny/9f0b9f4662729b7ed2c597ba3a462b1a to your computer and use it in GitHub Desktop.
awrit.nix
{ pkgs ? import (builtins.fetchTarball "https://github.com/nixos/nixpkgs/archive/759537f06e6999e141588ff1c9be7f3a5c060106.zip") { } }:
pkgs.stdenv.mkDerivation {
name = "awrit";
src = builtins.fetchTarball "https://github.com/chase/awrit/archive/546772897461f7a4654d30450547f95f11c0f6b6.zip";
nativeBuildInputs = [
pkgs.cmake
pkgs.ninja
pkgs.pkg-config
] ++ pkgs.libcef.nativeBuildInputs;
buildInputs = [
pkgs.xorg.libX11
] ++ pkgs.libcef.buildInputs;
cmakeFlags = [
(pkgs.lib.strings.cmakeFeature "FETCHCONTENT_SOURCE_DIR_CEF_SRC"
"${pkgs.stdenv.mkDerivation {
name = "cef_src";
src = builtins.fetchTarball "https://cef-builds.spotifycdn.com/cef_binary_120.1.10+g3ce3184+chromium-120.0.6099.129_linux64_minimal.tar.bz2";
nativeBuildInputs = [ pkgs.makeWrapper pkgs.autoPatchelfHook ];
buildInputs = pkgs.libcef.buildInputs ++ [
pkgs.alsa-lib
pkgs.atk
pkgs.cups
pkgs.dbus
pkgs.expat
pkgs.glib
pkgs.libdrm
pkgs.libxkbcommon
pkgs.mesa
pkgs.nss
pkgs.pango
pkgs.xorg.libX11
pkgs.xorg.libXcomposite
pkgs.xorg.libXdamage
pkgs.xorg.libXext
pkgs.xorg.libXfixes
pkgs.xorg.libXrandr
];
installPhase = ''
cp -av $src $out
'';
}
}")
];
__noChroot = true;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment