fixes
This commit is contained in:
parent
a75c7e105c
commit
f87e16b108
5 changed files with 25 additions and 51 deletions
33
flake.lock
generated
33
flake.lock
generated
|
|
@ -43,11 +43,11 @@
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1763764254,
|
"lastModified": 1763788986,
|
||||||
"narHash": "sha256-+40Kw27qiSK/4BTAUXRa0xUo2dBCA9m5diOvLYPKDR4=",
|
"narHash": "sha256-uYgLhTSxWs9IRpia5Hxd7AMCaE0plr0+QhWBf26h9V0=",
|
||||||
"owner": "AvengeMedia",
|
"owner": "AvengeMedia",
|
||||||
"repo": "DankMaterialShell",
|
"repo": "DankMaterialShell",
|
||||||
"rev": "f8dc6ad2bc7361a7cfb40d70bd0fcf16aba6e4de",
|
"rev": "58bf1899410536c4244b9d44c243426dc1b2a2c9",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
|
@ -96,26 +96,6 @@
|
||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"dms-cli": {
|
|
||||||
"inputs": {
|
|
||||||
"nixpkgs": [
|
|
||||||
"nixpkgs"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"locked": {
|
|
||||||
"lastModified": 1763078370,
|
|
||||||
"narHash": "sha256-wsYqJlLdRSlJpRE0tIuuPMU6aOyhMdV237rEG/enUxY=",
|
|
||||||
"owner": "AvengeMedia",
|
|
||||||
"repo": "danklinux",
|
|
||||||
"rev": "7a083a0d6d087d41d0bc5077d03e662e1417ce3c",
|
|
||||||
"type": "github"
|
|
||||||
},
|
|
||||||
"original": {
|
|
||||||
"owner": "AvengeMedia",
|
|
||||||
"repo": "danklinux",
|
|
||||||
"type": "github"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"flake-compat": {
|
"flake-compat": {
|
||||||
"flake": false,
|
"flake": false,
|
||||||
"locked": {
|
"locked": {
|
||||||
|
|
@ -733,11 +713,11 @@
|
||||||
"nvim-dots": {
|
"nvim-dots": {
|
||||||
"flake": false,
|
"flake": false,
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1763770049,
|
"lastModified": 1763795441,
|
||||||
"narHash": "sha256-rSTmSFqyYXh/t/zsV46dHavshjJNlc1Qajb8K78blNA=",
|
"narHash": "sha256-hUP7GJuh5wSunhLCjuxkMRCYZweuQ3SOID3bUeG9zQ4=",
|
||||||
"owner": "alsaiduq-lab",
|
"owner": "alsaiduq-lab",
|
||||||
"repo": "nvim-dotfiles",
|
"repo": "nvim-dotfiles",
|
||||||
"rev": "2816b6522ce703c7d506064214f5dcb6bad149c5",
|
"rev": "26ae0fa8f47057c61632464d10b75599b1c2f1d6",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
|
@ -814,7 +794,6 @@
|
||||||
"dankMaterialShell": "dankMaterialShell",
|
"dankMaterialShell": "dankMaterialShell",
|
||||||
"dgop": "dgop",
|
"dgop": "dgop",
|
||||||
"disko": "disko",
|
"disko": "disko",
|
||||||
"dms-cli": "dms-cli",
|
|
||||||
"ghostty": "ghostty",
|
"ghostty": "ghostty",
|
||||||
"grim-hyprland": "grim-hyprland",
|
"grim-hyprland": "grim-hyprland",
|
||||||
"home-manager": "home-manager",
|
"home-manager": "home-manager",
|
||||||
|
|
|
||||||
|
|
@ -32,11 +32,6 @@
|
||||||
inputs.nixpkgs.follows = "nixpkgs";
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
};
|
};
|
||||||
|
|
||||||
dms-cli = {
|
|
||||||
url = "github:AvengeMedia/danklinux";
|
|
||||||
inputs.nixpkgs.follows = "nixpkgs";
|
|
||||||
};
|
|
||||||
|
|
||||||
dankMaterialShell = {
|
dankMaterialShell = {
|
||||||
url = "github:AvengeMedia/DankMaterialShell";
|
url = "github:AvengeMedia/DankMaterialShell";
|
||||||
inputs.nixpkgs.follows = "nixpkgs";
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
|
|
@ -88,7 +83,6 @@
|
||||||
unstable,
|
unstable,
|
||||||
ghostty,
|
ghostty,
|
||||||
hu-tao-cursor,
|
hu-tao-cursor,
|
||||||
dms-cli,
|
|
||||||
dankMaterialShell,
|
dankMaterialShell,
|
||||||
pinix,
|
pinix,
|
||||||
disko,
|
disko,
|
||||||
|
|
|
||||||
|
|
@ -16,7 +16,7 @@
|
||||||
includes = [
|
includes = [
|
||||||
{path = "${config.home.homeDirectory}/nix/.secrets/.git-config";}
|
{path = "${config.home.homeDirectory}/nix/.secrets/.git-config";}
|
||||||
];
|
];
|
||||||
extraConfig = {
|
settings = {
|
||||||
credential.helper = "store --file=${config.home.homeDirectory}/nix/.secrets/.git-credentials";
|
credential.helper = "store --file=${config.home.homeDirectory}/nix/.secrets/.git-credentials";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,9 @@
|
||||||
{pkgs, ...}: {
|
{pkgs, ...}: {
|
||||||
home.packages = [pkgs.thorium];
|
home.packages = [pkgs.thorium];
|
||||||
|
xdg.dataFile = {
|
||||||
|
"icons/hicolor" = {
|
||||||
|
source = "${pkgs.thorium}/share/icons/hicolor";
|
||||||
|
recursive = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,12 +1,13 @@
|
||||||
{
|
{
|
||||||
lib,
|
lib,
|
||||||
stdenvNoCC,
|
stdenv,
|
||||||
fetchurl,
|
fetchurl,
|
||||||
autoPatchelfHook,
|
autoPatchelfHook,
|
||||||
makeWrapper,
|
makeWrapper,
|
||||||
dpkg,
|
dpkg,
|
||||||
gnutar,
|
gnutar,
|
||||||
xdg-utils,
|
xdg-utils,
|
||||||
|
hicolor-icon-theme,
|
||||||
nss,
|
nss,
|
||||||
nspr,
|
nspr,
|
||||||
glib,
|
glib,
|
||||||
|
|
@ -49,8 +50,8 @@
|
||||||
pipewire,
|
pipewire,
|
||||||
gnome-settings-daemon,
|
gnome-settings-daemon,
|
||||||
}:
|
}:
|
||||||
stdenvNoCC.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = "thorium";
|
pname = "thorium-browser";
|
||||||
version = "130.0.6723.174";
|
version = "130.0.6723.174";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
|
|
@ -102,6 +103,7 @@ stdenvNoCC.mkDerivation rec {
|
||||||
pipewire
|
pipewire
|
||||||
];
|
];
|
||||||
|
|
||||||
|
propagatedBuildInputs = [hicolor-icon-theme];
|
||||||
unpackPhase = ''
|
unpackPhase = ''
|
||||||
ar x "$src"
|
ar x "$src"
|
||||||
tar --no-same-owner --no-same-permissions -xf data.tar.*
|
tar --no-same-owner --no-same-permissions -xf data.tar.*
|
||||||
|
|
@ -117,21 +119,14 @@ stdenvNoCC.mkDerivation rec {
|
||||||
if [ -f usr/share/applications/thorium-browser.desktop ]; then
|
if [ -f usr/share/applications/thorium-browser.desktop ]; then
|
||||||
sed -E \
|
sed -E \
|
||||||
-e "s|^Exec=.*|Exec=$out/bin/thorium %U|" \
|
-e "s|^Exec=.*|Exec=$out/bin/thorium %U|" \
|
||||||
usr/share/applications/thorium-browser.desktop > $out/share/applications/thorium.desktop
|
usr/share/applications/thorium-browser.desktop > $out/share/applications/thorium-browser.desktop
|
||||||
fi
|
|
||||||
if [ -d usr/share/icons ]; then
|
|
||||||
cp -r usr/share/icons $out/share/
|
|
||||||
fi
|
|
||||||
if [ ! -d $out/share/icons/hicolor ]; then
|
|
||||||
mkdir -p $out/share/icons/hicolor/{48x48,128x128,256x256}/apps
|
|
||||||
if [ -f $out/opt/thorium/product_logo_256.png ]; then
|
|
||||||
cp $out/opt/thorium/product_logo_256.png $out/share/icons/hicolor/256x256/apps/thorium-browser.png
|
|
||||||
elif [ -f $out/opt/thorium/product_logo_128.png ]; then
|
|
||||||
cp $out/opt/thorium/product_logo_128.png $out/share/icons/hicolor/128x128/apps/thorium-browser.png
|
|
||||||
elif [ -f $out/opt/thorium/thorium.png ]; then
|
|
||||||
cp $out/opt/thorium/thorium.png $out/share/icons/hicolor/256x256/apps/thorium-browser.png
|
|
||||||
fi
|
|
||||||
fi
|
fi
|
||||||
|
mkdir -p $out/share/icons/hicolor
|
||||||
|
cp ${hicolor-icon-theme}/share/icons/hicolor/index.theme $out/share/icons/hicolor/
|
||||||
|
for size in 16 24 32 48 64 128 256; do
|
||||||
|
mkdir -p $out/share/icons/hicolor/''${size}x''${size}/apps
|
||||||
|
cp $out/opt/thorium/product_logo_256.png $out/share/icons/hicolor/''${size}x''${size}/apps/thorium-browser.png
|
||||||
|
done
|
||||||
runHook postInstall
|
runHook postInstall
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue