Compare commits

..

No commits in common. "904c554f77a87b65c05dc1e1c6ab077de5ecff1d" and "0308024ce3d97364e5701260bd7484acd85ea9df" have entirely different histories.

4 changed files with 17 additions and 36 deletions

View file

@ -1,5 +1,5 @@
function nix-build function nix-build
if type -q nom-build if type -q nix-build
nom-build $argv nom-build $argv
else else
nix-build $argv nix-build $argv

View file

@ -1,5 +1,5 @@
function nix-shell function nix-shell
if type -q nom-shell if type -q nix-shell
nom-shell $argv nom-shell $argv
else else
nix-shell $argv nix-shell $argv

View file

@ -51,10 +51,9 @@ final: prev: rec {
}; };
weights = { weights = {
# Build 580, but indicate 400 in output
Regular.shape = 580; Regular.shape = 580;
Regular.menu = 400; Regular.menu = 580;
Regular.css = 400; Regular.css = 580;
Bold.shape = 700; Bold.shape = 700;
Bold.menu = 700; Bold.menu = 700;
Bold.css = 700; Bold.css = 700;

View file

@ -13,38 +13,20 @@ let
withNotify = false; withNotify = false;
}; };
# * overrides the nix input as nix-monitored keepNixOverride =
# * any override changing the nix input will change that to nix-monitored
use-nix-monitored =
drv: drv:
let drv
drv' = drv.override { nix = nix-monitored; };
in
drv'
// rec {
override =
args:
let
args' =
if args ? nix then
args
// { // {
nix = nix-monitored.override { inherit (args) nix; }; override = args: drv.override (builtins.removeAttrs args [ "nix" ]);
}
else
args;
in
(drv'.override args') // { inherit override; };
}; };
inherit (prev) lib;
in in
lib.optionalAttrs (prev ? nixos-rebuild) { {
nixos-rebuild = use-nix-monitored prev.nixos-rebuild; nixos-rebuild-ng = keepNixOverride (
} prev.nixos-rebuild-ng.override {
// lib.optionalAttrs (prev ? nixos-rebuild-ng) { nix = nix-monitored;
nixos-rebuild-ng = use-nix-monitored prev.nixos-rebuild-ng; }
} );
// { nix-direnv = prev.nix-direnv.override {
nix-direnv = use-nix-monitored prev.nix-direnv; nix = nix-monitored;
};
} }