Skip to content

Commit

Permalink
No commit message
Browse files Browse the repository at this point in the history
  • Loading branch information
edolstra committed Mar 9, 2009
1 parent ac146ee commit 09fb154
Showing 1 changed file with 10 additions and 15 deletions.
25 changes: 10 additions & 15 deletions release.nix
Original file line number Diff line number Diff line change
@@ -1,18 +1,19 @@
{nixpkgs ? ../nixpkgs}:

let

pkgs = import nixpkgs {};


jobs = rec {


tarball =
{ patchelfSrc ? {path = ./.; rev = 1234;}
, nixpkgs ? {path = ../nixpkgs;}
{ patchelfSrc ? {outPath = ./.; rev = 1234;}
, officialRelease ? false
}:

with import nixpkgs.path {};

releaseTools.makeSourceTarball {
pkgs.releaseTools.makeSourceTarball {
name = "patchelf-tarball";
version = builtins.readFile ./version;
src = patchelfSrc;
Expand All @@ -22,12 +23,9 @@ let

coverage =
{ tarball ? jobs.tarball {}
, nixpkgs ? {path = ../nixpkgs;}
}:

with import nixpkgs.path {};

releaseTools.coverageAnalysis {
pkgs.releaseTools.coverageAnalysis {
name = "patchelf-coverage";
src = tarball;
lcovFilter = ["*/tests/*"];
Expand All @@ -36,11 +34,10 @@ let

build =
{ tarball ? jobs.tarball {}
, nixpkgs ? {path = ../nixpkgs;}
, system ? "i686-linux"
}:

with import nixpkgs.path {inherit system;};
with import nixpkgs {inherit system;};

releaseTools.nixBuild {
name = "patchelf";
Expand Down Expand Up @@ -80,10 +77,9 @@ let
makeRPM =
system: diskImageFun: prio:
{ tarball ? jobs.tarball {}
, nixpkgs ? {path = ../nixpkgs;}
}:

with import nixpkgs.path {inherit system;};
with import nixpkgs {inherit system;};

releaseTools.rpmBuild rec {
name = "patchelf-rpm";
Expand All @@ -99,10 +95,9 @@ let
makeDeb =
system: diskImageFun: prio:
{ tarball ? jobs.tarball {}
, nixpkgs ? {path = ../nixpkgs;}
}:

with import nixpkgs.path {inherit system;};
with import nixpkgs {inherit system;};

releaseTools.debBuild {
name = "patchelf-deb";
Expand Down

0 comments on commit 09fb154

Please sign in to comment.