nixGL and firefox

compress-drv-tests
Motiejus Jakštys 2023-12-14 10:10:00 +02:00 committed by Motiejus Jakštys
parent 5204da7657
commit c13c45736b
3 changed files with 44 additions and 0 deletions

View File

@ -144,6 +144,29 @@
"type": "github"
}
},
"nixgl": {
"inputs": {
"flake-utils": [
"flake-utils"
],
"nixpkgs": [
"nixpkgs"
]
},
"locked": {
"lastModified": 1685908677,
"narHash": "sha256-E4zUPEUFyVWjVm45zICaHRpfGepfkE9Z2OECV9HXfA4=",
"owner": "guibou",
"repo": "nixGL",
"rev": "489d6b095ab9d289fe11af0219a9ff00fe87c7c5",
"type": "github"
},
"original": {
"owner": "guibou",
"repo": "nixGL",
"type": "github"
}
},
"nixos-hardware": {
"locked": {
"lastModified": 1702453208,
@ -232,6 +255,7 @@
"gitignore": "gitignore",
"home-manager": "home-manager",
"nix-index-database": "nix-index-database",
"nixgl": "nixgl",
"nixos-hardware": "nixos-hardware",
"nixpkgs": "nixpkgs",
"nur": "nur",

View File

@ -38,6 +38,14 @@
};
};
nixgl = {
url = "github:guibou/nixGL";
inputs = {
nixpkgs.follows = "nixpkgs";
flake-utils.follows = "flake-utils";
};
};
nix-index-database.url = "github:Mic92/nix-index-database";
nix-index-database.inputs.nixpkgs.follows = "nixpkgs";
@ -74,6 +82,7 @@
pre-commit-hooks,
zigpkgs,
nur,
nixgl,
...
} @ inputs: let
myData = import ./data.nix;
@ -296,6 +305,7 @@
inherit system;
overlays = [
nur.overlay
nixgl.overlay
(_final: prev: {
zigpkgs = import zigpkgs {
inherit (prev) pkgs;

View File

@ -21,12 +21,22 @@
zigpkgs."0.11.0"
])
(lib.mkIf hmOnly [
pkgs.nixgl.nixGLIntel
ncdu
tokei
scrcpy
yt-dlp
vimv-rs
bandwhich
hyperfine
(runCommand "ff" {} ''
mkdir -p $out/bin
{
echo '#!/bin/sh'
echo 'exec ${pkgs.nixgl.nixGLIntel}/bin/nixGLIntel ${firefox}/bin/firefox "$@"'
} > $out/bin/ff
chmod a+x $out/bin/ff
'')
])
];