Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 117 lines (84 sloc) 3.58 kb
09fb154 @edolstra
edolstra authored
1 {nixpkgs ? ../nixpkgs}:
2
f8a7fd6 @edolstra * Different priorities for jobs.
edolstra authored
3 let
2c55eab @edolstra * Hydra job expression for patchelf.
edolstra authored
4
09fb154 @edolstra
edolstra authored
5 pkgs = import nixpkgs {};
6
2c55eab @edolstra * Hydra job expression for patchelf.
edolstra authored
7
f8a7fd6 @edolstra * Different priorities for jobs.
edolstra authored
8 jobs = rec {
2c55eab @edolstra * Hydra job expression for patchelf.
edolstra authored
9
9e533f3 @edolstra
edolstra authored
10
f8a7fd6 @edolstra * Different priorities for jobs.
edolstra authored
11 tarball =
09fb154 @edolstra
edolstra authored
12 { patchelfSrc ? {outPath = ./.; rev = 1234;}
f8a7fd6 @edolstra * Different priorities for jobs.
edolstra authored
13 , officialRelease ? false
14 }:
2c55eab @edolstra * Hydra job expression for patchelf.
edolstra authored
15
09fb154 @edolstra
edolstra authored
16 pkgs.releaseTools.makeSourceTarball {
f8a7fd6 @edolstra * Different priorities for jobs.
edolstra authored
17 name = "patchelf-tarball";
0bc577f @edolstra * Put the current version in a separate file so that it can be used in
edolstra authored
18 version = builtins.readFile ./version;
f8a7fd6 @edolstra * Different priorities for jobs.
edolstra authored
19 src = patchelfSrc;
20 inherit officialRelease;
21 };
9e533f3 @edolstra
edolstra authored
22
2c55eab @edolstra * Hydra job expression for patchelf.
edolstra authored
23
f8a7fd6 @edolstra * Different priorities for jobs.
edolstra authored
24 coverage =
0bc577f @edolstra * Put the current version in a separate file so that it can be used in
edolstra authored
25 { tarball ? jobs.tarball {}
f8a7fd6 @edolstra * Different priorities for jobs.
edolstra authored
26 }:
2c55eab @edolstra * Hydra job expression for patchelf.
edolstra authored
27
09fb154 @edolstra
edolstra authored
28 pkgs.releaseTools.coverageAnalysis {
f8a7fd6 @edolstra * Different priorities for jobs.
edolstra authored
29 name = "patchelf-coverage";
30 src = tarball;
77847c4 @edolstra * Improve the coverage percentage a bit :-)
edolstra authored
31 lcovFilter = ["*/tests/*"];
f8a7fd6 @edolstra * Different priorities for jobs.
edolstra authored
32 };
33
34
35 build =
0bc577f @edolstra * Put the current version in a separate file so that it can be used in
edolstra authored
36 { tarball ? jobs.tarball {}
f8a7fd6 @edolstra * Different priorities for jobs.
edolstra authored
37 , system ? "i686-linux"
38 }:
39
09fb154 @edolstra
edolstra authored
40 with import nixpkgs {inherit system;};
f8a7fd6 @edolstra * Different priorities for jobs.
edolstra authored
41
42 releaseTools.nixBuild {
ac146ee @edolstra
edolstra authored
43 name = "patchelf";
f8a7fd6 @edolstra * Different priorities for jobs.
edolstra authored
44 src = tarball;
45 postInstall = ''
46 echo "doc readme $out/share/doc/patchelf/README" >> $out/nix-support/hydra-build-products
47 '';
48 };
2c55eab @edolstra * Hydra job expression for patchelf.
edolstra authored
49
50
36d925e @edolstra
edolstra authored
51 rpm_fedora5i386 = makeRPM_i686 (diskImages: diskImages.fedora5i386) 20;
871da3f @edolstra
edolstra authored
52 rpm_fedora9i386 = makeRPM_i686 (diskImages: diskImages.fedora9i386) 30;
53 rpm_fedora9x86_64 = makeRPM_x86_64 (diskImages: diskImages.fedora9x86_64) 30;
36d925e @edolstra
edolstra authored
54 rpm_fedora10i386 = makeRPM_i686 (diskImages: diskImages.fedora10i386) 40;
55 rpm_fedora10x86_64 = makeRPM_x86_64 (diskImages: diskImages.fedora10x86_64) 40;
871da3f @edolstra
edolstra authored
56 rpm_fedora11i386 = makeRPM_i686 (diskImages: diskImages.fedora11i386) 50;
57 rpm_fedora11x86_64 = makeRPM_x86_64 (diskImages: diskImages.fedora11x86_64) 50;
36d925e @edolstra
edolstra authored
58 rpm_opensuse103i386 = makeRPM_i686 (diskImages: diskImages.opensuse103i386) 40;
871da3f @edolstra
edolstra authored
59 rpm_opensuse110i386 = makeRPM_i686 (diskImages: diskImages.opensuse110i386) 30;
60 rpm_opensuse110x86_64 = makeRPM_x86_64 (diskImages: diskImages.opensuse110x86_64) 30;
61 rpm_opensuse111i386 = makeRPM_i686 (diskImages: diskImages.opensuse111i386) 40;
62 rpm_opensuse111x86_64 = makeRPM_x86_64 (diskImages: diskImages.opensuse111x86_64) 40;
f8a7fd6 @edolstra * Different priorities for jobs.
edolstra authored
63
64
230ef43 @edolstra * Build Ubuntu 8.10, Debian 5.0 packages.
edolstra authored
65 deb_debian40i386 = makeDeb_i686 (diskImages: diskImages.debian40i386) 40;
66 deb_debian40x86_64 = makeDeb_x86_64 (diskImages: diskImages.debian40x86_64) 40;
67 deb_debian50i386 = makeDeb_i686 (diskImages: diskImages.debian50i386) 30;
68 deb_debian50x86_64 = makeDeb_x86_64 (diskImages: diskImages.debian50x86_64) 30;
871da3f @edolstra
edolstra authored
69 deb_ubuntu804i386 = makeDeb_i686 (diskImages: diskImages.ubuntu804i386) 30;
70 deb_ubuntu804x86_64 = makeDeb_x86_64 (diskImages: diskImages.ubuntu804x86_64) 30;
230ef43 @edolstra * Build Ubuntu 8.10, Debian 5.0 packages.
edolstra authored
71 deb_ubuntu810i386 = makeDeb_i686 (diskImages: diskImages.ubuntu810i386) 40;
72 deb_ubuntu810x86_64 = makeDeb_x86_64 (diskImages: diskImages.ubuntu810x86_64) 40;
871da3f @edolstra
edolstra authored
73 deb_ubuntu904i386 = makeDeb_i686 (diskImages: diskImages.ubuntu904i386) 50;
74 deb_ubuntu904x86_64 = makeDeb_x86_64 (diskImages: diskImages.ubuntu904x86_64) 50;
f8a7fd6 @edolstra * Different priorities for jobs.
edolstra authored
75
76
77 };
78
79
36d925e @edolstra
edolstra authored
80 makeRPM_i686 = makeRPM "i686-linux";
81 makeRPM_x86_64 = makeRPM "x86_64-linux";
82
f8a7fd6 @edolstra * Different priorities for jobs.
edolstra authored
83 makeRPM =
36d925e @edolstra
edolstra authored
84 system: diskImageFun: prio:
0bc577f @edolstra * Put the current version in a separate file so that it can be used in
edolstra authored
85 { tarball ? jobs.tarball {}
2c55eab @edolstra * Hydra job expression for patchelf.
edolstra authored
86 }:
87
09fb154 @edolstra
edolstra authored
88 with import nixpkgs {inherit system;};
2c55eab @edolstra * Hydra job expression for patchelf.
edolstra authored
89
f8a7fd6 @edolstra * Different priorities for jobs.
edolstra authored
90 releaseTools.rpmBuild rec {
0bc577f @edolstra * Put the current version in a separate file so that it can be used in
edolstra authored
91 name = "patchelf-rpm";
eb78e0a @edolstra * Simplify.
edolstra authored
92 src = tarball;
f8a7fd6 @edolstra * Different priorities for jobs.
edolstra authored
93 diskImage = diskImageFun vmTools.diskImages;
871da3f @edolstra
edolstra authored
94 meta = { schedulingPriority = prio; };
2c55eab @edolstra * Hydra job expression for patchelf.
edolstra authored
95 };
9e533f3 @edolstra
edolstra authored
96
f8a7fd6 @edolstra * Different priorities for jobs.
edolstra authored
97
36d925e @edolstra
edolstra authored
98 makeDeb_i686 = makeDeb "i686-linux";
99 makeDeb_x86_64 = makeDeb "x86_64-linux";
100
f8a7fd6 @edolstra * Different priorities for jobs.
edolstra authored
101 makeDeb =
36d925e @edolstra
edolstra authored
102 system: diskImageFun: prio:
0bc577f @edolstra * Put the current version in a separate file so that it can be used in
edolstra authored
103 { tarball ? jobs.tarball {}
c406fba @edolstra
edolstra authored
104 }:
105
09fb154 @edolstra
edolstra authored
106 with import nixpkgs {inherit system;};
c406fba @edolstra
edolstra authored
107
108 releaseTools.debBuild {
109 name = "patchelf-deb";
110 src = tarball;
f8a7fd6 @edolstra * Different priorities for jobs.
edolstra authored
111 diskImage = diskImageFun vmTools.diskImages;
871da3f @edolstra
edolstra authored
112 meta = { schedulingPriority = prio; };
c406fba @edolstra
edolstra authored
113 };
114
f8a7fd6 @edolstra * Different priorities for jobs.
edolstra authored
115
116 in jobs
Something went wrong with that request. Please try again.