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
if type -q nom-build
if type -q nix-build
nom-build $argv
else
nix-build $argv

View file

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

View file

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

View file

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