Commit Graph

15 Commits

Author SHA1 Message Date
Ben Siraphob
e03c068af5 treewide: makeWrapper buildInputs to nativeBuildInputs 2021-02-19 20:09:16 +07:00
Profpatsch
4a7f99d55d treewide: with stdenv.lib; in meta -> with lib;
Part of: https://github.com/NixOS/nixpkgs/issues/108938

meta = with stdenv.lib;

is a widely used pattern. We want to slowly remove
the `stdenv.lib` indirection and encourage people
to use `lib` directly. Thus let’s start with the meta
field.

This used a rewriting script to mostly automatically
replace all occurances of this pattern, and add the
`lib` argument to the package header if it doesn’t
exist yet.

The script in its current form is available at
https://cs.tvl.fyi/depot@2f807d7f141068d2d60676a89213eaa5353ca6e0/-/blob/users/Profpatsch/nixpkgs-rewriter/default.nix
2021-01-11 10:38:22 +01:00
volth
46420bbaa3 treewide: name -> pname (easy cases) ()
treewide replacement of

stdenv.mkDerivation rec {
  name = "*-${version}";
  version = "*";

to pname
2019-08-15 13:41:18 +01:00
Jörg Thalheim
dadc7eb329
treewide: use runtimeShell instead of stdenv.shell whenever possible
Whenever we create scripts that are installed to $out, we must use runtimeShell
in order to get the shell that can be executed on the machine we create the
package for. This is relevant for cross-compiling. The only use case for
stdenv.shell are scripts that are executed as part of the build system.
Usages in checkPhase are borderline however to decrease the likelyhood
of people copying the wrong examples, I decided to use runtimeShell as well.
2019-02-26 14:10:49 +00:00
Jan Tojnar
59a94b57f0
update.nix: Run update scripts in parallel
To make updating large attribute sets faster, the update scripts
are now run in parallel.

Please note the following changes in semantics:

- The string passed to updateScript needs to be a path to an executable file.
- The updateScript can also be a list: the tail elements will then be passed
  to the head as command line arguments.
2018-12-01 19:17:13 +01:00
Tim Cuthbertson
4200e68e04 nix-pin: 0.3.4 -> 0.4.0 2018-09-18 20:48:21 +10:00
Tim Cuthbertson
9fb27679de nix-pin: 0.3.1 -> 0.3.4 2018-06-18 22:09:14 +10:00
Tim Cuthbertson
04703916cf nix-pin: 0.3.0 -> 0.3.1 2018-05-09 21:15:33 +10:00
Tim Cuthbertson
3cce9b107a nix-pin: 0.2.2 -> 0.3.0 2018-05-05 19:53:40 +10:00
Tim Cuthbertson
1faea2934b nix-pin: 0.1.2 -> 0.2.2 and add updateScript 2018-04-23 15:38:16 +10:00
Jörg Thalheim
94d92fd046 Revert "nix-pin: 0.1.2 -> 0.2.2"
This reverts commit 92f083af23.

breaks evaluation
2018-04-22 16:43:27 +01:00
Jörg Thalheim
b96cc8fb86 Revert "nix-pin: add passthru.updateScript"
This reverts commit 146dabd4ac.

breaks evaluation
2018-04-22 16:43:18 +01:00
Tim Cuthbertson
146dabd4ac nix-pin: add passthru.updateScript 2018-04-22 15:17:39 +10:00
Tim Cuthbertson
92f083af23 nix-pin: 0.1.2 -> 0.2.2 2018-04-22 14:12:32 +10:00
Tim Cuthbertson
a1cf616537 nix-pin: init at 0.1.2 2018-04-09 09:04:37 +10:00