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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

38 lines
1.0 KiB
Nix
Raw Normal View History

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