blob: 1d1cc900225eb2d74d01c2e5a040f1a3a221c83f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
|
let
jobs = rec {
tarball =
{ patchelfSrc ? {path = ./.; rev = 1234;}
, nixpkgs ? {path = ../nixpkgs;}
, officialRelease ? false
}:
with import nixpkgs.path {};
releaseTools.makeSourceTarball {
name = "patchelf-tarball";
src = patchelfSrc;
inherit officialRelease;
};
coverage =
{ tarball ? {path = jobs.tarball {};}
, nixpkgs ? {path = ../nixpkgs;}
}:
with import nixpkgs.path {};
releaseTools.coverageAnalysis {
name = "patchelf-coverage";
src = tarball;
};
build =
{ tarball ? {path = jobs.tarball {};}
, nixpkgs ? {path = ../nixpkgs;}
, system ? "i686-linux"
}:
with import nixpkgs.path {inherit system;};
releaseTools.nixBuild {
name = "patchelf-build";
src = tarball;
postInstall = ''
echo "doc readme $out/share/doc/patchelf/README" >> $out/nix-support/hydra-build-products
'';
};
rpm_fedora9i386 = makeRPM (diskImages: diskImages.fedora9i386) 50;
rpm_fedora10i386 = makeRPM (diskImages: diskImages.fedora10i386) 40;
deb_debian40i386 = makeDeb (diskImages: diskImages.debian40i386) 30;
deb_ubuntu804i386 = makeDeb (diskImages: diskImages.ubuntu804i386) 40;
};
makeRPM =
diskImageFun: prio:
{ tarball ? {path = jobs.tarball {};}
, nixpkgs ? {path = ../nixpkgs;}
}:
with import nixpkgs.path {};
releaseTools.rpmBuild rec {
name = "patchelf-rpm-${diskImage.name}";
src = tarball;
diskImage = diskImageFun vmTools.diskImages;
meta = { schedulingPriority = toString prio; };
};
makeDeb =
diskImageFun: prio:
{ tarball ? {path = jobs.tarball {};}
, nixpkgs ? {path = ../nixpkgs;}
}:
with import nixpkgs.path {};
releaseTools.debBuild {
name = "patchelf-deb";
src = tarball;
diskImage = diskImageFun vmTools.diskImages;
meta = { schedulingPriority = toString prio; };
};
in jobs
|