This allows the lib fixed point to be extended with
myLib = lib.extend (self: super: {
foo = "foo";
})
With this it's possible to have the new modified lib attrset available to all
modules when using evalModules
myLib.evalModules {
modules = [ ({ lib, ... }: {
options.bar = lib.mkOption {
default = lib.foo;
};
}) ];
}
=> { config = { bar = "foo"; ... }; options = ...; }
This patch is heavily inspired by bd0d8ed807d29faa3deee96bafcbbd76c8fa4060 which added
a setcap wrapper for `mtr` in order to allow running `mtr` without
`sudo`. The need for the capability `cap_net_raw` that can be registered using
`setcap` has been documented in the Arch Wiki: https://wiki.archlinux.org/index.php/Capabilities#iftop
A simple testcase has been added which starts two machines, one with a
setcap wrapper for `iftop`, one without. Both testcases monitor the
bandwidth usage of the machine using the options `-t -s 1` once, the
machine with setcap wrapper is expected to succeed, the `iftop` on the
machine without setcap wrapper is expected to return a non-zero exit
code.
Upstream requested that we remove these packages until the first stable
release. More details are in #38344. This isn't ideal but it seems like
the best solution for now.
Close#38344.
Semi-automatic update generated by https://github.com/ryantm/nixpkgs-update tools.
This update was made based on information from https://repology.org/metapackage/notmuch/versions.
These checks were done:
- built on NixOS
- ran ‘/nix/store/05v4k89ni4phwyxvqskr0hji49b5fmck-notmuch-0.26.1/bin/notmuch --help’ got 0 exit code
- ran ‘/nix/store/05v4k89ni4phwyxvqskr0hji49b5fmck-notmuch-0.26.1/bin/notmuch help’ got 0 exit code
- ran ‘/nix/store/05v4k89ni4phwyxvqskr0hji49b5fmck-notmuch-0.26.1/bin/notmuch --version’ and found version 0.26.1
- found 0.26.1 with grep in /nix/store/05v4k89ni4phwyxvqskr0hji49b5fmck-notmuch-0.26.1
- directory tree listing: https://gist.github.com/adeae189f9ac416571a7c0e3beca712f
Semi-automatic update generated by https://github.com/ryantm/nixpkgs-update tools.
This update was made based on information from https://repology.org/metapackage/openttd/versions.
These checks were done:
- built on NixOS
- ran ‘/nix/store/m11nsq51szvkzqnlsb3k7skqzh2781jp-openttd-1.8.0/bin/openttd -h’ got 0 exit code
- ran ‘/nix/store/m11nsq51szvkzqnlsb3k7skqzh2781jp-openttd-1.8.0/bin/openttd --help’ got 0 exit code
- ran ‘/nix/store/m11nsq51szvkzqnlsb3k7skqzh2781jp-openttd-1.8.0/bin/openttd help’ got 0 exit code
- ran ‘/nix/store/m11nsq51szvkzqnlsb3k7skqzh2781jp-openttd-1.8.0/bin/.openttd-wrapped -h’ got 0 exit code
- ran ‘/nix/store/m11nsq51szvkzqnlsb3k7skqzh2781jp-openttd-1.8.0/bin/.openttd-wrapped --help’ got 0 exit code
- ran ‘/nix/store/m11nsq51szvkzqnlsb3k7skqzh2781jp-openttd-1.8.0/bin/.openttd-wrapped help’ got 0 exit code
- found 1.8.0 with grep in /nix/store/m11nsq51szvkzqnlsb3k7skqzh2781jp-openttd-1.8.0
- directory tree listing: https://gist.github.com/8f8e59bc7bf394685911bd755a16c0a9
symlink shared libraries from LD_LIBRARY_PATH into lib/julia,
as using a wrapper with LD_LIBRARY_PATH causes segmentation
faults when program returns an error:
$ julia -e 'throw(Error())'
only applied for 0.6, which is the current julia version. Will
see if we can remove the older versions in master.
(cherry picked from commit 41f3a4e0030a1b0233de6ca7f5208c44eb370313)