2019-04-24 15:05:29 +08:00
|
|
|
{ stdenv, git, fetchgit }:
|
2019-04-24 04:07:43 +08:00
|
|
|
let
|
|
|
|
artiq-timestamp = stdenv.mkDerivation {
|
|
|
|
name = "artiq-timestamp";
|
|
|
|
src = import ./artiq-src.nix { inherit fetchgit; };
|
|
|
|
buildPhase = ''
|
|
|
|
TIMESTAMP=`${git}/bin/git log -1 --format=%ct`
|
|
|
|
'';
|
|
|
|
installPhase = ''
|
2019-04-24 15:05:29 +08:00
|
|
|
echo -n $TIMESTAMP > $out
|
2019-04-24 04:07:43 +08:00
|
|
|
'';
|
|
|
|
};
|
|
|
|
in
|
|
|
|
builtins.readFile artiq-timestamp
|