nix: Remove redundant derivation attrs
These cause unnecessary rebuilds when a new series is added and exposing them as package attributes looks convenient but is not sustainable.
This commit is contained in:
parent
90b4ae600e
commit
9848c378ed
@ -31,11 +31,12 @@ common =
|
||||
}:
|
||||
let
|
||||
sh = busybox-sandbox-shell;
|
||||
nix = stdenv.mkDerivation rec {
|
||||
inherit pname version src patches;
|
||||
|
||||
is24 = lib.versionAtLeast version "2.4pre";
|
||||
is25 = lib.versionAtLeast version "2.5pre";
|
||||
is24 = lib.versionAtLeast version "2.4pre";
|
||||
is25 = lib.versionAtLeast version "2.5pre";
|
||||
|
||||
nix = stdenv.mkDerivation {
|
||||
inherit pname version src patches;
|
||||
|
||||
VERSION_SUFFIX = suffix;
|
||||
|
||||
@ -173,6 +174,9 @@ common =
|
||||
};
|
||||
|
||||
passthru = {
|
||||
is24 = lib.warn ''nix package: attribute .is24 is deprecated. Please use lib.versionAtLeast X.version "2.4pre".'' is24;
|
||||
is25 = lib.warn ''nix package: attribute .is25 is deprecated. Please use lib.versionAtLeast X.version "2.5pre".'' is25;
|
||||
|
||||
perl-bindings = perl.pkgs.toPerlModule (stdenv.mkDerivation {
|
||||
pname = "nix-perl";
|
||||
inherit version;
|
||||
|
Loading…
Reference in New Issue
Block a user