mirror of
https://github.com/librephoenix/nixos-config
synced 2025-07-06 14:52:24 +05:30
Added qute-containers to qutebrowser
This commit is contained in:
parent
5791833114
commit
76f5015549
2 changed files with 693 additions and 2 deletions
32
user/app/browser/qute-containers.nix
Normal file
32
user/app/browser/qute-containers.nix
Normal file
|
@ -0,0 +1,32 @@
|
|||
{ lib, stdenv, fetchFromGitHub, pkgs, dmenuCmd ? "rofi -dmenu", ... }:
|
||||
|
||||
let name = "qute-containers";
|
||||
version = "unstable";
|
||||
dmenu = dmenuCmd;
|
||||
in
|
||||
stdenv.mkDerivation {
|
||||
inherit name version;
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "s-praveen-kumar";
|
||||
repo = "qute-containers";
|
||||
rev = "c6164b94104fa8565200b87bfc87a2e08ca15ac7";
|
||||
sha256 = "sha256-g684sPSEJTRSk2V8LVrQsNeRIYtaQueRpZeREWtmQKw=";
|
||||
};
|
||||
|
||||
phases = "installPhase";
|
||||
|
||||
installPhase = ''
|
||||
mkdir -p $out $out/bin
|
||||
cp $src/* $out/bin
|
||||
sed -i 's/DMENU=\"rofi -dmenu\"/DMENU=\"''+dmenu+''\"/g' $out/bin/containers_config
|
||||
sed -i 's/DMENU_FLAGS//g' $out/bin/container-open
|
||||
'';
|
||||
|
||||
meta = {
|
||||
homepage = "https://github.com/s-praveen-kumar/qute-containers";
|
||||
description = "Browser Containers for Qutebrowser";
|
||||
license = lib.licenses.mit;
|
||||
maintainers = [];
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue