x3270: 4.4ga6 -> 4.5ga5 (#523045)
This commit is contained in:
@@ -24,8 +24,8 @@
|
||||
}:
|
||||
let
|
||||
majorVersion = "4";
|
||||
minorVersion = "4";
|
||||
versionSuffix = "ga6";
|
||||
minorVersion = "5";
|
||||
versionSuffix = "ga5";
|
||||
in
|
||||
stdenv.mkDerivation (finalAttrs: {
|
||||
pname = "x3270";
|
||||
@@ -33,11 +33,12 @@ stdenv.mkDerivation (finalAttrs: {
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://x3270.bgp.nu/download/0${majorVersion}.0${minorVersion}/suite3270-${finalAttrs.version}-src.tgz";
|
||||
hash = "sha256-hDju5ZeVzTv78ZYwUzabmqMK9rheTZJ7clTSTpkkM7E=";
|
||||
hash = "sha256-AVdvpYWYzN09Nm/r+u9h49Hek+tgqT+axrpfr4QUTG8=";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
patchShebangs .
|
||||
substituteInPlace Common/mkversion.py --replace-fail "int(os.environ['SOURCE_DATE_EPOCH'])" "1"
|
||||
'';
|
||||
|
||||
buildFlags = lib.optional stdenv.hostPlatform.isLinux "unix";
|
||||
@@ -49,6 +50,8 @@ stdenv.mkDerivation (finalAttrs: {
|
||||
"--enable-tcl3270"
|
||||
];
|
||||
|
||||
enableParallelBuilding = true;
|
||||
|
||||
preBuild = ''
|
||||
if [ -n "$SOURCE_DATE_EPOCH" ]; then
|
||||
export SOURCE_DATE_EPOCH="$(date -u -d "@$SOURCE_DATE_EPOCH" '+%a %b %d %H:%M:%S UTC %Y')"
|
||||
|
||||
Reference in New Issue
Block a user