Template : Add SOURCE_DATE_EPOCH.

This commit is contained in:
Dmitry Voronin 2024-05-07 22:45:53 +03:00
parent 2b1ca4f29a
commit b0fe4f6ec7
Signed by: voronind
SSH key fingerprint: SHA256:3kBb4iV2ahufEBNq+vFbUe4QYfHt98DHQjN7QaptY9k
4 changed files with 9 additions and 4 deletions

View file

@ -53,6 +53,7 @@
JAVA_HOME = "${jdk}"; JAVA_HOME = "${jdk}";
LD_LIBRARY_PATH = "${lib.makeLibraryPath buildInputs}"; LD_LIBRARY_PATH = "${lib.makeLibraryPath buildInputs}";
ANDROID_SDK_ROOT = "${androidSdk}/libexec/android-sdk/"; ANDROID_SDK_ROOT = "${androidSdk}/libexec/android-sdk/";
SOURCE_DATE_EPOCH = "${toString(self.lastModified)}";
}; };
}; };
}; };

View file

@ -14,6 +14,8 @@
default = pkgs.mkShell rec { default = pkgs.mkShell rec {
nativeBuildInputs = with pkgs; [ ]; nativeBuildInputs = with pkgs; [ ];
buildInputs = with pkgs; [ ]; buildInputs = with pkgs; [ ];
SOURCE_DATE_EPOCH = "${toString(self.lastModified)}";
}; };
}; };
}; };

View file

@ -47,6 +47,7 @@
tex tex
]; ];
buildInputs = with pkgs; [ ]; buildInputs = with pkgs; [ ];
SOURCE_DATE_EPOCH = "${toString(self.lastModified)}";
}; };
}; };
}; };

View file

@ -32,6 +32,7 @@
xorg.libXi xorg.libXi
]; ];
LD_LIBRARY_PATH = "${lib.makeLibraryPath buildInputs}"; LD_LIBRARY_PATH = "${lib.makeLibraryPath buildInputs}";
SOURCE_DATE_EPOCH = "${toString(self.lastModified)}";
}; };
}; };
} }