xorg.xcalc: 1.0.7 -> 1.1.0

xcalc: ensure "app-defaults" resources are installed+found, works now
This commit is contained in:
Will Dietz 2019-06-11 17:10:32 -05:00
parent 0d576d7eb8
commit 813799a6cb
No known key found for this signature in database
GPG Key ID: EBB0EA4124809D02
3 changed files with 15 additions and 4 deletions

View File

@ -1405,11 +1405,11 @@ lib.makeScope newScope (self: with self; {
}) {};
xcalc = callPackage ({ stdenv, pkgconfig, fetchurl, libX11, libXaw, xorgproto, libXt }: stdenv.mkDerivation {
name = "xcalc-1.0.7";
name = "xcalc-1.1.0";
builder = ./builder.sh;
src = fetchurl {
url = mirror://xorg/individual/app/xcalc-1.0.7.tar.bz2;
sha256 = "08bzaldi76vrj7350d7b04pq7qa1qhi81x8i806yv42zcp8p3lkh";
url = mirror://xorg/individual/app/xcalc-1.1.0.tar.bz2;
sha256 = "1sxmlcb0sb3h4z05kl5l0kxnhrc0h8c74p9m3zdc7bv58jaldmym";
};
hardeningDisable = [ "bindnow" "relro" ];
nativeBuildInputs = [ pkgconfig ];

View File

@ -699,4 +699,15 @@ self: super:
rm $out/bin/xkeystone
'';
});
xcalc = super.xcalc.overrideAttrs (attrs: {
configureFlags = attrs.configureFlags or [] ++ [
"--with-appdefaultdir=${placeholder "out"}/share/X11/app-defaults"
];
nativeBuildInputs = attrs.nativeBuildInputs or [] ++ [ makeWrapper ];
postInstall = ''
wrapProgram $out/bin/xcalc \
--set XAPPLRESDIR ${placeholder "out"}/share/X11/app-defaults
'';
});
}

View File

@ -28,7 +28,7 @@ mirror://xorg/individual/app/viewres-1.0.5.tar.bz2
mirror://xorg/individual/app/x11perf-1.6.1.tar.bz2
mirror://xorg/individual/app/xauth-1.0.10.tar.bz2
mirror://xorg/individual/app/xbacklight-1.2.2.tar.bz2
mirror://xorg/individual/app/xcalc-1.0.7.tar.bz2
mirror://xorg/individual/app/xcalc-1.1.0.tar.bz2
mirror://xorg/individual/app/xclock-1.0.8.tar.bz2
mirror://xorg/individual/app/xcmsdb-1.0.5.tar.bz2
mirror://xorg/individual/app/xcompmgr-1.1.8.tar.bz2