diff options
author | Graham Christensen <graham@grahamc.com> | 2017-12-23 07:19:45 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-12-23 07:19:45 -0500 |
commit | b5a61f2c599ac665e3c3129258ea8671cb5760af (patch) | |
tree | ac16b806bfd54846edba76b0f21ff5d929570ff4 /lib/trivial.nix | |
parent | d3a0eb320a5e28a19b82f813e001fa832d7ef1d3 (diff) | |
download | nixpkgs-b5a61f2c599ac665e3c3129258ea8671cb5760af.tar nixpkgs-b5a61f2c599ac665e3c3129258ea8671cb5760af.tar.gz nixpkgs-b5a61f2c599ac665e3c3129258ea8671cb5760af.tar.bz2 nixpkgs-b5a61f2c599ac665e3c3129258ea8671cb5760af.tar.lz nixpkgs-b5a61f2c599ac665e3c3129258ea8671cb5760af.tar.xz nixpkgs-b5a61f2c599ac665e3c3129258ea8671cb5760af.tar.zst nixpkgs-b5a61f2c599ac665e3c3129258ea8671cb5760af.zip |
Revert "nixos: doc: implement related packages in the manual"
Diffstat (limited to 'lib/trivial.nix')
-rw-r--r-- | lib/trivial.nix | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/lib/trivial.nix b/lib/trivial.nix index 5f18c0b61cc..c452c7b65bc 100644 --- a/lib/trivial.nix +++ b/lib/trivial.nix @@ -81,31 +81,6 @@ rec { */ mod = base: int: base - (int * (builtins.div base int)); - /* C-style comparisons - - a < b => -1 - a == b => 0 - a > b => 1 - */ - compare = a: b: - if a < b - then -1 - else if a > b - then 1 - else 0; - - /* Split type into two subtypes by predicate `p`, assume - - forall x y . x < y if p x == true && p y == false - - compare elements of the same subtype with `yes` and `no` - comparisons respectively. - */ - splitByAndCompare = p: yes: no: a: b: - if p a - then if p b then yes a b else -1 - else if p b then 1 else no a b; - /* Reads a JSON file. */ importJSON = path: builtins.fromJSON (builtins.readFile path); |