chore(git): add includeIf for nix-dev-shells
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -93,3 +93,6 @@
|
|||||||
|
|
||||||
[includeIf "gitdir:~/work/"]
|
[includeIf "gitdir:~/work/"]
|
||||||
path = ~/.gitconfig.work
|
path = ~/.gitconfig.work
|
||||||
|
|
||||||
|
[includeIf "gitdir:~/nix-dev-shells/"]
|
||||||
|
path = ~/.gitconfig.work
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
{ config, lib, ... }:
|
{ config, lib, pkgs, ... }:
|
||||||
|
|
||||||
{
|
{
|
||||||
options.nixgl.wrap = lib.mkOption {
|
options.nixgl.wrap = lib.mkOption {
|
||||||
@@ -13,6 +13,7 @@
|
|||||||
pkg: flags:
|
pkg: flags:
|
||||||
if config.lib ? nixGL then
|
if config.lib ? nixGL then
|
||||||
pkg.overrideAttrs (old: {
|
pkg.overrideAttrs (old: {
|
||||||
|
nativeBuildInputs = (old.nativeBuildInputs or [ ]) ++ [ pkgs.makeWrapper ];
|
||||||
postInstall = (old.postInstall or "") + ''
|
postInstall = (old.postInstall or "") + ''
|
||||||
wrapProgram $out/bin/${pkg.meta.mainProgram} --add-flags "${flags}"
|
wrapProgram $out/bin/${pkg.meta.mainProgram} --add-flags "${flags}"
|
||||||
'';
|
'';
|
||||||
|
|||||||
Reference in New Issue
Block a user