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,12 +31,13 @@ common =
|
|||||||
}:
|
}:
|
||||||
let
|
let
|
||||||
sh = busybox-sandbox-shell;
|
sh = busybox-sandbox-shell;
|
||||||
nix = stdenv.mkDerivation rec {
|
|
||||||
inherit pname version src patches;
|
|
||||||
|
|
||||||
is24 = lib.versionAtLeast version "2.4pre";
|
is24 = lib.versionAtLeast version "2.4pre";
|
||||||
is25 = lib.versionAtLeast version "2.5pre";
|
is25 = lib.versionAtLeast version "2.5pre";
|
||||||
|
|
||||||
|
nix = stdenv.mkDerivation {
|
||||||
|
inherit pname version src patches;
|
||||||
|
|
||||||
VERSION_SUFFIX = suffix;
|
VERSION_SUFFIX = suffix;
|
||||||
|
|
||||||
outputs =
|
outputs =
|
||||||
@ -173,6 +174,9 @@ common =
|
|||||||
};
|
};
|
||||||
|
|
||||||
passthru = {
|
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 {
|
perl-bindings = perl.pkgs.toPerlModule (stdenv.mkDerivation {
|
||||||
pname = "nix-perl";
|
pname = "nix-perl";
|
||||||
inherit version;
|
inherit version;
|
||||||
|
Loading…
Reference in New Issue
Block a user