potpourri - add brave into home/, st has light mode, etc.
This commit is contained in:
parent
236529f36a
commit
66b98eab2e
|
@ -7,6 +7,7 @@
|
||||||
, fontconfig
|
, fontconfig
|
||||||
, freetype
|
, freetype
|
||||||
, ncurses
|
, ncurses
|
||||||
|
, lightMode ? false
|
||||||
, extraLibs ? [ ]
|
, extraLibs ? [ ]
|
||||||
}:
|
}:
|
||||||
|
|
||||||
|
@ -19,7 +20,8 @@ stdenv.mkDerivation rec {
|
||||||
nativeBuildInputs = [ pkg-config fontconfig freetype ncurses ];
|
nativeBuildInputs = [ pkg-config fontconfig freetype ncurses ];
|
||||||
buildInputs = [ libX11 libXft ] ++ extraLibs;
|
buildInputs = [ libX11 libXft ] ++ extraLibs;
|
||||||
|
|
||||||
buildPhase = ''
|
buildPhase = lib.optionalString (lightMode == true) "cp lightmode.h colors.h;" +
|
||||||
|
''
|
||||||
make
|
make
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1,18 @@
|
||||||
|
{ lib, inputs, config, pkgs, home, ... }:
|
||||||
|
|
||||||
|
let
|
||||||
|
plib = import ../../lib { inherit pkgs; };
|
||||||
|
in {
|
||||||
|
programs.chromium = {
|
||||||
|
enable = true;
|
||||||
|
package = lib.mkForce (plib.mkPackageWrapper
|
||||||
|
pkgs.brave
|
||||||
|
"export HOME=$HOME/.cache/brave"
|
||||||
|
""
|
||||||
|
"--args --disable-frame-rate-limit"
|
||||||
|
);
|
||||||
|
extensions = [
|
||||||
|
{ id = "ecnphlgnajanjnkcmbpancdjoidceilk"; }
|
||||||
|
];
|
||||||
|
};
|
||||||
|
}
|
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
{
|
{
|
||||||
home.packages = [
|
home.packages = [
|
||||||
(pkgs.callPackage ./elinks.nix {})
|
pkgs.elinks
|
||||||
];
|
];
|
||||||
|
|
||||||
home.file = {
|
home.file = {
|
||||||
|
|
|
@ -1,49 +0,0 @@
|
||||||
{ lib, stdenv, fetchFromGitHub, ncurses, libX11, bzip2, zlib
|
|
||||||
, brotli, zstd, xz, openssl, autoreconfHook, gettext, pkg-config, libev
|
|
||||||
, gpm, libidn, tre, expat, luajit
|
|
||||||
}:
|
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
|
||||||
pname = "elinks";
|
|
||||||
version = "0.17.0";
|
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
|
||||||
owner = "rkd77";
|
|
||||||
repo = "elinks";
|
|
||||||
rev = "v${version}";
|
|
||||||
hash = "sha256-JeUiMHAqSZxxBe8DplzmzHzsY6KqoBqba0y8GDwaR0Y=";
|
|
||||||
};
|
|
||||||
|
|
||||||
buildInputs = [
|
|
||||||
ncurses libX11 bzip2 zlib brotli zstd xz
|
|
||||||
openssl libidn tre expat libev luajit
|
|
||||||
]
|
|
||||||
++ lib.optional stdenv.isLinux gpm
|
|
||||||
;
|
|
||||||
|
|
||||||
nativeBuildInputs = [ autoreconfHook gettext pkg-config ];
|
|
||||||
|
|
||||||
configureFlags = [
|
|
||||||
"--enable-finger"
|
|
||||||
"--enable-html-highlight"
|
|
||||||
"--enable-gopher"
|
|
||||||
"--enable-gemini"
|
|
||||||
"--enable-cgi"
|
|
||||||
"--enable-bittorrent"
|
|
||||||
"--enable-nntp"
|
|
||||||
"--enable-256-colors"
|
|
||||||
"--enable-true-color"
|
|
||||||
"--with-brotli"
|
|
||||||
"--with-lzma"
|
|
||||||
"--with-libev"
|
|
||||||
"--with-terminfo"
|
|
||||||
];
|
|
||||||
|
|
||||||
meta = with lib; {
|
|
||||||
description = "Full-featured text-mode web browser";
|
|
||||||
homepage = "https://github.com/rkd77/elinks";
|
|
||||||
license = licenses.gpl2;
|
|
||||||
platforms = with platforms; linux ++ darwin;
|
|
||||||
maintainers = with maintainers; [ iblech gebner ];
|
|
||||||
};
|
|
||||||
}
|
|
|
@ -12,12 +12,5 @@ in {
|
||||||
pkgs.xwallpaper
|
pkgs.xwallpaper
|
||||||
pkgs.xbrightness
|
pkgs.xbrightness
|
||||||
pkgs.xdotool
|
pkgs.xdotool
|
||||||
] ++ [
|
|
||||||
(plib.mkPackageWrapper
|
|
||||||
pkgs.brave
|
|
||||||
"export HOME=$HOME/.cache/brave"
|
|
||||||
""
|
|
||||||
"--args --disable-frame-rate-limit"
|
|
||||||
)
|
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
|
@ -3,6 +3,7 @@
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
./bspwm
|
./bspwm
|
||||||
|
./brave
|
||||||
./sx
|
./sx
|
||||||
./sxhkd
|
./sxhkd
|
||||||
./tridactyl
|
./tridactyl
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
|
|
||||||
environment.systemPackages = [
|
environment.systemPackages = [
|
||||||
(pkgs.callPackage ../builds/rebuild.nix {})
|
(pkgs.callPackage ../builds/rebuild.nix {})
|
||||||
(pkgs.callPackage ../builds/st.nix {})
|
(pkgs.callPackage ../builds/st.nix { lightMode = true; })
|
||||||
(pkgs.callPackage ../builds/utils.nix {})
|
(pkgs.callPackage ../builds/utils.nix {})
|
||||||
(pkgs.callPackage ../builds/statusbar {})
|
(pkgs.callPackage ../builds/statusbar {})
|
||||||
pkgs.man-pages
|
pkgs.man-pages
|
||||||
|
|
Loading…
Reference in New Issue