nixpkgs-suyu/pkgs/tools/X11/xzoom/default.nix

38 lines
1 KiB
Nix
Raw Normal View History

2021-01-15 10:19:50 +01:00
{ lib, stdenv, fetchurl, libX11, libXext, libXt, imake, gccmakedep}:
2018-11-28 04:38:50 +01:00
2017-08-20 18:27:16 +02:00
stdenv.mkDerivation rec {
2019-10-21 14:57:35 +02:00
name = "${pname}-${version}";
2017-08-20 18:27:16 +02:00
pname = "xzoom";
2019-10-28 17:32:21 +01:00
version = "0.3";
2019-10-21 14:57:35 +02:00
patch = "24";
2017-08-20 18:27:16 +02:00
# or fetchFromGitHub(owner,repo,rev) or fetchgit(rev)
src = fetchurl {
2019-10-28 17:32:21 +01:00
url = "http://www.ibiblio.org/pub/linux/libs/X/${pname}-${version}.tgz";
2017-08-20 18:27:16 +02:00
sha256 = "0jzl5py4ny4n4i58lxx2hdwq9zphqf7h3m14spl3079y5mlzssxj";
};
patches = [
(fetchurl {
2019-10-28 17:32:21 +01:00
url = "http://http.debian.net/debian/pool/main/x/xzoom/xzoom_${version}-${patch}.diff.gz";
2017-08-20 18:27:16 +02:00
sha256 = "0zhc06whbvaz987bzzzi2bz6h9jp6rv812qs7b71drivvd820qbh";
})
];
2018-11-28 04:38:50 +01:00
nativeBuildInputs = [ imake gccmakedep ];
buildInputs = [ libX11 libXext libXt ];
makeFlags = [
"PREFIX=$(out)"
"BINDIR=$(out)/bin"
"MANPATH=$(out)/share/man"
];
2019-11-04 13:33:53 +01:00
installTargets = [ "install" "install.man" ];
2017-08-20 18:27:16 +02:00
meta = {
description = "An X11 screen zoom tool";
2021-01-15 10:19:50 +01:00
license = lib.licenses.free ;
maintainers = [lib.maintainers.raskin];
platforms = lib.platforms.linux;
2017-08-20 18:27:16 +02:00
};
}