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
@@ -2,13 +2,12 @@
, cmake
, gettext
, libSrc
, libVersion
}:
let
mkLib = name:
stdenv.mkDerivation {
pname = "kicad-${name}";
version = libVersion;
version = builtins.substring 0 10 (libSrc name).rev;
src = libSrc name;