nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 stdenv,
4 fetchFromBitbucket,
5 fetchpatch,
6 libX11,
7}:
8stdenv.mkDerivation {
9 pname = "xannotate";
10 version = "20150301";
11
12 src = fetchFromBitbucket {
13 owner = "blais";
14 repo = "xannotate";
15 rev = "e5591c2ec67ca39988f1fb2966e94f0f623f9aa7";
16 sha256 = "02jy19if0rnbxvs6b0l5mi9ifvdj2qmv0pv278v9kfs0kvir68ik";
17 };
18
19 patches = [
20 # Pull patch pending upstream inclusion for -gno-common tollchains:
21 # https://github.com/blais/xannotate/pull/1
22 (fetchpatch {
23 name = "fno-common.patch";
24 url = "https://github.com/blais/xannotate/commit/ee637e2dee103d0e654865c2202ea1b3af2a20d6.patch";
25 sha256 = "1lw22d5qs1bwp53l332yl3yypfvwrbi750wp7yv90nfn3ia0xhni";
26 })
27 ];
28
29 buildInputs = [ libX11 ];
30
31 meta = {
32 description = "Tool to scribble over X windows";
33 license = lib.licenses.gpl2Plus;
34 maintainers = [ lib.maintainers.raskin ];
35 platforms = lib.platforms.linux;
36 homepage = "https://github.com/blais/xannotate";
37 mainProgram = "xannotate";
38 };
39}