forked from lix-project/lix
* Simplify.
This commit is contained in:
parent
1a65142ec4
commit
03afc34805
42
release.nix
42
release.nix
|
@ -1,4 +1,7 @@
|
||||||
{ nixpkgs ? ../nixpkgs }:
|
{ nix ? {outPath = ./.; rev = 1234;}
|
||||||
|
, nixpkgs ? ../nixpkgs
|
||||||
|
, officialRelease ? false
|
||||||
|
}:
|
||||||
|
|
||||||
let
|
let
|
||||||
|
|
||||||
|
@ -6,10 +9,6 @@ let
|
||||||
|
|
||||||
|
|
||||||
tarball =
|
tarball =
|
||||||
{ nix ? {outPath = ./.; rev = 1234;}
|
|
||||||
, officialRelease ? false
|
|
||||||
}:
|
|
||||||
|
|
||||||
with import nixpkgs {};
|
with import nixpkgs {};
|
||||||
|
|
||||||
releaseTools.sourceTarball {
|
releaseTools.sourceTarball {
|
||||||
|
@ -66,9 +65,7 @@ let
|
||||||
|
|
||||||
|
|
||||||
build =
|
build =
|
||||||
{ tarball ? jobs.tarball {}
|
{ system ? "i686-linux" }:
|
||||||
, system ? "i686-linux"
|
|
||||||
}:
|
|
||||||
|
|
||||||
with import nixpkgs {inherit system;};
|
with import nixpkgs {inherit system;};
|
||||||
|
|
||||||
|
@ -76,7 +73,7 @@ let
|
||||||
name = "nix";
|
name = "nix";
|
||||||
src = tarball;
|
src = tarball;
|
||||||
|
|
||||||
buildInputs = [curl perl bzip2 openssl];
|
buildInputs = [ curl perl bzip2 openssl ];
|
||||||
|
|
||||||
configureFlags = ''
|
configureFlags = ''
|
||||||
--disable-init-state
|
--disable-init-state
|
||||||
|
@ -86,27 +83,24 @@ let
|
||||||
|
|
||||||
|
|
||||||
coverage =
|
coverage =
|
||||||
{ tarball ? jobs.tarball {}
|
|
||||||
}:
|
|
||||||
|
|
||||||
with import nixpkgs {};
|
with import nixpkgs {};
|
||||||
|
|
||||||
releaseTools.coverageAnalysis {
|
releaseTools.coverageAnalysis {
|
||||||
name = "nix-build";
|
name = "nix-build";
|
||||||
src = tarball;
|
src = tarball;
|
||||||
|
|
||||||
buildInputs = [
|
buildInputs =
|
||||||
curl perl bzip2 openssl
|
[ curl perl bzip2 openssl
|
||||||
# These are for "make check" only:
|
# These are for "make check" only:
|
||||||
graphviz libxml2 libxslt
|
graphviz libxml2 libxslt
|
||||||
];
|
];
|
||||||
|
|
||||||
configureFlags = ''
|
configureFlags = ''
|
||||||
--disable-init-state --disable-shared
|
--disable-init-state --disable-shared
|
||||||
--with-aterm=${aterm} --with-bzip2=${bzip2} --with-sqlite=${sqlite}
|
--with-aterm=${aterm} --with-bzip2=${bzip2} --with-sqlite=${sqlite}
|
||||||
'';
|
'';
|
||||||
|
|
||||||
lcovFilter = ["*/boost/*" "*-tab.*"];
|
lcovFilter = [ "*/boost/*" "*-tab.*" ];
|
||||||
|
|
||||||
# We call `dot', and even though we just use it to
|
# We call `dot', and even though we just use it to
|
||||||
# syntax-check generated dot files, it still requires some
|
# syntax-check generated dot files, it still requires some
|
||||||
|
@ -151,17 +145,15 @@ let
|
||||||
|
|
||||||
makeRPM =
|
makeRPM =
|
||||||
system: diskImageFun: prio:
|
system: diskImageFun: prio:
|
||||||
{ tarball ? jobs.tarball {}
|
|
||||||
}:
|
|
||||||
|
|
||||||
with import nixpkgs {inherit system;};
|
with import nixpkgs {inherit system;};
|
||||||
|
|
||||||
releaseTools.rpmBuild rec {
|
releaseTools.rpmBuild rec {
|
||||||
name = "nix-rpm-${diskImage.name}";
|
name = "nix-rpm-${diskImage.name}";
|
||||||
src = tarball;
|
src = jobs.tarball;
|
||||||
diskImage = diskImageFun vmTools.diskImages;
|
diskImage = diskImageFun vmTools.diskImages;
|
||||||
memSize = 1024;
|
memSize = 1024;
|
||||||
meta = { schedulingPriority = toString prio; };
|
meta.schedulingPriority = prio;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
@ -170,17 +162,15 @@ let
|
||||||
|
|
||||||
makeDeb =
|
makeDeb =
|
||||||
system: diskImageFun: prio:
|
system: diskImageFun: prio:
|
||||||
{ tarball ? jobs.tarball {}
|
|
||||||
}:
|
|
||||||
|
|
||||||
with import nixpkgs {inherit system;};
|
with import nixpkgs {inherit system;};
|
||||||
|
|
||||||
releaseTools.debBuild {
|
releaseTools.debBuild {
|
||||||
name = "nix-deb";
|
name = "nix-deb";
|
||||||
src = tarball;
|
src = jobs.tarball;
|
||||||
diskImage = diskImageFun vmTools.diskImages;
|
diskImage = diskImageFun vmTools.diskImages;
|
||||||
memSize = 1024;
|
memSize = 1024;
|
||||||
meta = { schedulingPriority = toString prio; };
|
meta.schedulingPriority = prio;
|
||||||
configureFlags = "--sysconfdir=/etc";
|
configureFlags = "--sysconfdir=/etc";
|
||||||
debRequires = ["curl"];
|
debRequires = ["curl"];
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue