summaryrefslogtreecommitdiff
path: root/lib (follow)
Commit message (Expand)AuthorAgeFilesLines
* lib/*: editorconfig fixeszowoq2020-07-311-1/+1
* Merge pull request #93568 from aaronjanse/aj-redox•••Add Redox OS as a targetJohn Ericson2020-07-226-4/+23
|\
| * redox: add as targetAaron Janse2020-07-216-4/+23
* | lib: toHex -> toHexString & toBase -> toBaseDigits•••This makes the type of these functions more apparent from the name. Bas van Dijk2020-07-203-15/+15
* | lib: add the toHex and toBase utility functions•••`toHex` converts the given positive integer to a string of the hexadecimal representation of that integer. For example: ``` toHex 0 => "0" toHex 16 => "10" toHex 250 => "FA" ``` `toBase base i` converts the positive integer `i` to a list of it digits in the given `base`. For example: ``` toBase 10 123 => [ 1 2 3 ] toBase 2 6 => [ 1 1 0 ] toBase 16 250 => [ 15 10 ] ``` Bas van Dijk2020-07-203-1/+62
|/
* Merge pull request #92348 from jtojnar/explicit-only-gpl•••licenses: Make single-version-only GPL explicitJan Tojnar2020-07-181-10/+22
|\
| * licenses: Make single-version-only GPL explicit•••I commonly see people use the former when they should use the latter. Would be also in line with the SPDX change https://www.gnu.org/licenses/identify-licenses-clearly.html Jan Tojnar2020-07-051-10/+22
* | commitIdFromGitRepo: fix stackoverflow if many branches are used.•••If many branches are created than builtins.match stack overflows because of a bug in libstdc++: see https://github.com/NixOS/nix/issues/2147 Jörg Thalheim2020-07-171-3/+7
|/
* Merge pull request #92049 from r-ryantm/auto-update/libvmaf•••libvmaf: 1.5.1 -> 1.5.2Ryan Mulligan2020-07-021-0/+5
|\
| * licenses: add bsd2PatentRyan Mulligan2020-07-021-0/+5
* | licenses: add LGPL For Linguistic ResourcesDaniël de Kok2020-06-271-0/+5
* | Merge pull request #91454 from ConradMearns/obsidian•••obsidian: init at 0.7.3Maximilian Bosch2020-06-281-0/+6
|\ \
| * | licences: add Obsidian.md EULAConrad Mearns2020-06-251-0/+6
* | | lib/licenses: add SPDX LLVM-exceptionMarkus Kowalewski2020-06-271-0/+5
| |/ |/|
* | lib/attrsets: add getMan functionrnhmjoj2020-06-182-1/+2
|/
* lib/attrsets: fix typo in the comment of mapAttrsRecursiveCondPierre Allix2020-06-161-1/+1
* licenses: add GNU Free Documentation License v1.1Markus Kowalewski2020-06-111-0/+5
* Merge master into staging-nextFrederik Rietdijk2020-06-051-1/+1
|\
| * Bump minver.nix to 2.2•••Note: NixOS 19.03 had Nix 2.2 and 19.09 had 2.3. Eelco Dolstra2020-06-041-1/+1
* | Merge pull request #84032 from teto/fix_kernel_merge•••Fix kernel configuration mergeFlorian Klink2020-05-221-4/+4
|\ \ | |/ |/|
| * kernel: fix config generation•••Addresses https://github.com/NixOS/nixpkgs/issues/71803: Kernel options are not merged as described, especially the "optional" aspects. The error silences legitimate warnings. Matthieu Coudron2020-04-011-4/+4
* | lib.fake{Sri => Hash}: fix and rename•••The previous hash was too short and caused evaluation-time errors like: invalid SRI hash 'sha256-AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=' Additionally, since the fact that this is broken implies that nobody could have been using it, "SRI" is a bit of a vague and obscure term, `fakeSriHash` would be somewhat of a mouthful, and the relevant fetcher parameters are just called `hash`, rename it to `fakeHash`. Emily2020-05-112-2/+2
* | Merge pull request #86074 from emilazy/refactor-linux-hardened-update-scriptJörg Thalheim2020-05-111-1/+1
|\ \
| * | linux/hardened: move files into directoryEmily2020-05-081-1/+1
* | | fix example for foldlDrew Mullen2020-05-081-2/+2
|/ /
* | lib/tests: Allow overriding pkgs independent of lib being testedSilvan Mosberger2020-04-252-8/+18
* | verifast: change license to MIT•••It seems verifast was relicensed to MIT in 2016: https://github.com/verifast/verifast/commit/b3c1bce76aec40de115c666e8d6e7d09f3f35a78 As this was the only package using lib.licenses.msrla I dropped it.Pavol Rusnak2020-04-231-6/+0
* | Merge pull request #81210 from B4dM4n/ausweisapp2•••ausweisapp2: init at 1.20.0Timo Kaufmann2020-04-201-0/+5
|\ \
| * | licenses: add EUPL-1.2Fabian Möller2020-04-181-0/+5
* | | lib/licenses: use https where possiblePavol Rusnak2020-04-181-15/+15
|/ /
* | treewide: per RFC45, remove more unquoted URLsPavol Rusnak2020-04-181-1/+1
* | lib/options: fix showOption exampleDaiderd Jordan2020-04-141-1/+1
* | Revert "lib/options: Use escapeNixIdentifier for showOption"•••This is used in in the manual generation for option identifiers that can be linked. This, unike what the example describes, doesn't preserve quotes which is needed for these identifiers to be valid. This reverts commit 124cccbe3b63122733e02e41e45a383ec48752fd. Daiderd Jordan2020-04-141-7/+8
* | lib/options: Relax showOption quoting•••https://github.com/NixOS/nixpkgs/commit/124cccbe3b63122733e02e41e45a383ec48752fd broke the build of NixOS manual. It does not make sense to be as strict as with attributes since we are not limited by the CLI's inability to handle numbers. Placeholders should not be quoted either as they are not part of Nix syntax but a meta-level construct. Jan Tojnar2020-04-141-1/+14
* | lib/maintainer-list: Implement validity checksSilvan Mosberger2020-04-132-1/+76
* | lib/tests/release.nix: Avoid importing nixpkgs into the store•••Improves build time by about a factor of two on my system Silvan Mosberger2020-04-131-3/+3
* | lib/tests/modules.sh: Don't depend on $PWDSilvan Mosberger2020-04-131-1/+4
* | lib/options: Use escapeNixIdentifier for showOptionSilvan Mosberger2020-04-131-8/+1
* | lib/strings: Introduce escapeNixIdentifierSilvan Mosberger2020-04-131-0/+15
* | treewide: Per RFC45, remove all unquoted URLsMichael Reilly2020-04-101-24/+24
* | lib: add shortcut for fake SRI hashTony Olagbaiye2020-04-052-1/+2
* | Merge pull request #83241 from Infinisil/valid-drv-name•••lib/strings: Add `sanitizeDerivationName` functionSilvan Mosberger2020-04-023-2/+76
|\ \
| * | lib/strings: Add sanitizeDerivationName functionSilvan Mosberger2020-03-303-2/+76
* | | lib.licenses: Add Unicode License Agreement for Data Files and SoftwareKonrad Borowski2020-04-011-0/+5
| |/ |/|
* | mongodb: 3.4.10 -> 4.0.4•••fix: Adding libtool to allow darwin compiles Libtool seems to be required for mongodb to compile on darwin. fix: Marking MongoDB as broken on aarch64 fix: Adding libtools to the pkg imports Update mongodb to 4.0.4 Nathan Smyth2020-03-261-0/+7
* | Merge pull request #82929 from zimbatm/nixos-gerrit•••nixos gerrit modulezimbatm2020-03-261-0/+53
|\ \
| * | lib.generators: add toGitINI•••This code was taken from the home-manager project. zimbatm2020-03-261-0/+53
* | | lib/systems: Add Genode platform definitions•••Add platform definitions for 64-bit ARM and x86. This is sufficient for for building Genode where a toolchain is provided as an overlay. Toolchain: git+https://git.sr.ht/~ehmry/genodepkgs?rev=14fc773ac9ecd2cbb30cb4612b284eee83d83546 Emery Hemingway2020-03-245-2/+11
* | | Merge pull request #83201 from michaelpj/imp/sources-unnamed•••cleanSourceWith: don't use baseNameOfRobert Hensing2020-03-241-5/+2
|\ \ \ | |/ / |/| |
| * | cleanSourceWith: don't use baseNameOf•••Currently, not providing `name` to `cleanSourceWith` will use the name of the imported directory. However, a common case is for this to be the top level of some repository. In that case, the name will be the name of the checkout on the current machine, which is not necessarily reproducible across different settings, and can lead to e.g. cache misses in CI. This is documented in the comment on `cleanSourceWith`, but this does not stop it being a subtle trap for users. There are different tradeoffs in each case: 1. If `cleanSourceWith` defaults to `"source"`, then we may end up with a user not knowing what directory a source store path corresponds to. However, it being called "unnamed" may give them a clue that there is a way for them to name it, and lead them to the definition of the function, which has a clear `name` parameter. 2. If `cleanSoureWith` defaults to the directory name, then a user may face occasional loss of caching, which is hard to notice, and hard to track down. Tracking it down likely requires use of more advanced tools like `nix-diff`, and reading the source of a lot of nix code. I think the downside of the status quo is worse. This is really another iteration of https://github.com/NixOS/nix/issues/1305: that led to adding the `name` argument in the first place, this just makes us use a better default `name`. Michael Peyton Jones2020-03-231-5/+2