Felix Buehler
90f9565f1a
nix-template-rpm: deprecate phases
3 years ago
Ben Siraphob
e03c068af5
treewide: makeWrapper buildInputs to nativeBuildInputs
3 years ago
Ben Siraphob
36c91cea1d
treewide: stdenv.lib -> lib
3 years ago
Pavol Rusnak
90f7338112
treewide: stdenv.lib -> lib
3 years ago
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
4 years ago
volth
08f68313a4
treewide: remove redundant rec
5 years ago
volth
46420bbaa3
treewide: name -> pname (easy cases) ( #66585 )
...
treewide replacement of
stdenv.mkDerivation rec {
name = "*-${version}";
version = "*";
to pname
5 years ago
Michał Janiszewski
3f05186984
Compare to `None` using identity `is` operator
...
This is a trivial change that replaces `==` operator with `is` operator, following PEP 8 guideline:
> Comparisons to singletons like None should always be done with is or is not, never the equality operators.
https://legacy.python.org/dev/peps/pep-0008/#programming-recommendations
6 years ago
Thomas Strobel
d255d41678
Update: new features for nix-template-rpm
...
- nix-template-rpm can now split the generated templates into
a static part that goes into the nixpkgs tree
a dynamic part that can be updated easily to track the rpm spec files
- add lookup mechanism for package names and package paths
- add mechanism to update existing nix-expression with new download files
10 years ago
Thomas Strobel
f0228c6eb2
Add: nix-template-rpm: Script to generate templates of nix expressions from RPM .spec files
10 years ago