summaryrefslogtreecommitdiffstats
path: root/lib/trivial.nix
AgeCommit message (Collapse)Author
2016-10-11nixos: make it easy to apply kernel patchesCharles Strahan
This makes it easy to specify kernel patches: boot.kernelPatches = [ pkgs.kernelPatches.ubuntu_fan_4_4 ]; To make the `boot.kernelPatches` option possible, this also makes it easy to extend and/or modify the kernel packages within a linuxPackages set. For example: pkgs.linuxPackages.extend (self: super: { kernel = super.kernel.override { kernelPatches = super.kernel.kernelPatches ++ [ pkgs.kernelPatches.ubuntu_fan_4_4 ]; }; }); Closes #15095
2016-10-09fetch*: print a trace warning about md5 deprecationMichael Raskin
2016-08-15lib.{warn, info}: add simple helpersDan Peebles
See also https://github.com/NixOS/nix/issues/749.
2016-08-11treewide: change $IN_NIX_SHELL handlingVladimír Čunát
... to be compatible with https://github.com/NixOS/nix/pull/933 while not breaking compatibility with current nix.
2016-08-01lib: refactor nixpkgsVersion with fileContentsEric Sagnes
2016-02-29lib.trivial: add a new importJSON functionzimbatm
This is meant to be used by packages who often re-generate their inputs. Producing valid JSON is easier than nix, and also garantees it's purity.
2015-11-25lib/trivial.nix: improve spellingPeter Simons
2015-11-24lib: document fix and add fix', extends functionsPeter Simons
These functions used to live in pkgs/development/haskell-modules/default.nix, but they are generic, really, and should be easily accessible to everyone.
2015-07-23Rename misc.nix -> deprecated.nixEelco Dolstra
2015-03-20Use builtin seq/deepSeqEelco Dolstra
2015-02-16Automatically set nix.nrBuildUsers to at least nix.maxJobsEelco Dolstra
2014-02-19Add a global variable ‘inNixShell’Eelco Dolstra
This is primarily useful in Nix expressions that are also intended to be used by nix-shell. It allows saying things like: buildInputs = [ ... ] ++ (if inNixShell then [ emacs ] else [ ]); This should not be used in Nixpkgs (since the question of what constitutes a useful nix-shell environment is very subjective).
2014-02-19Add a constant ‘nixpkgsVersion’Eelco Dolstra
This makes it a bit easier to find out the current Nixpkgs version, e.g. $ nix-instantiate --eval '<nixpkgs>' -A lib.nixpkgsVersion "14.02.35657.66f51a9"
2013-11-12Add some primops to libEelco Dolstra
2013-10-10Move pkgs/lib/ to lib/Eelco Dolstra