kicad: avoid rebuild on date change

the date changes more often than most of the inputs
the date can also change on the base without other changes
  this causes a substantial rebuild for no reason
This commit is contained in:
Evils
2021-05-14 09:03:53 +02:00
parent 7dc05fed4f
commit e37d772beb
4 changed files with 7 additions and 11 deletions
@@ -155,11 +155,8 @@ in
stdenv.mkDerivation rec {
# Common libraries, referenced during runtime, via the wrapper.
passthru.libraries = callPackages ./libraries.nix { inherit libSrc libVersion; };
passthru.i18n = callPackage ./i18n.nix {
src = i18nSrc;
version = i18nVersion;
};
passthru.libraries = callPackages ./libraries.nix { inherit libSrc; };
passthru.i18n = callPackage ./i18n.nix { src = i18nSrc; };
base = callPackage ./base.nix {
inherit stable baseName;
inherit kicadSrc kicadVersion;
@@ -169,7 +166,7 @@ stdenv.mkDerivation rec {
};
inherit pname;
version = kicadVersion;
version = if (stable) then kicadVersion else builtins.substring 0 10 src.src.rev;
src = base;
dontUnpack = true;