Author: rob
Date: Mon Jan  3 20:34:27 2011
New Revision: 25372
URL: https://svn.nixos.org/websvn/nix/?rev=25372&sc=1

Log:
gnu-hydra: add rcs

Added:
   hydra-config/gnu/trunk/rcs/
   hydra-config/gnu/trunk/rcs/release.nix

Added: hydra-config/gnu/trunk/rcs/release.nix
==============================================================================
--- /dev/null   00:00:00 1970   (empty, because file is newly added)
+++ hydra-config/gnu/trunk/rcs/release.nix      Mon Jan  3 20:34:27 2011        
(r25372)
@@ -0,0 +1,91 @@
+/* Continuous integration of GNU with Hydra/Nix.
+   Copyright (C) 2010  Ludovic Courtès <[email protected]>
+   Copyright (C) 2010  Rob Vermaas <[email protected]>
+
+   This program is free software: you can redistribute it and/or modify
+   it under the terms of the GNU General Public License as published by
+   the Free Software Foundation, either version 3 of the License, or
+   (at your option) any later version.
+
+   This program is distributed in the hope that it will be useful,
+   but WITHOUT ANY WARRANTY; without even the implied warranty of
+   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+   GNU General Public License for more details.
+
+   You should have received a copy of the GNU General Public License
+   along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
+
+{ nixpkgs ? ../../nixpkgs 
+}:
+
+let
+  pkgs = import nixpkgs {};
+
+  meta = {
+    homepage = http://www.gnu.org/software/rcs/;
+    description = "The Revision Control System (RCS) manages multiple 
revisions of files.";
+
+    longDescription = ''
+      The Revision Control System (RCS) manages multiple revisions of files. 
+      RCS automates the storing, retrieval, logging, identification, and 
merging 
+      of revisions. RCS is useful for text that is revised frequently, 
including 
+      source code, programs, documentation, graphics, papers, and form letters.
+    '';
+
+    license = "GPLv3+";
+
+    # Those who will receive email notifications.
+    maintainers = [
+      "Rob Vermaas <[email protected]>"
+    ];
+  };
+
+  configureFlags = "RCS_PRETEST=acknowledged";
+
+  jobs = rec {
+
+    tarball = 
+      { rcs ? { outPath = ../../rcs; }
+      , gnulib ? {outPath = ../../gnulib;}
+      }:
+      pkgs.releaseTools.makeSourceTarball {
+       name = "rcs-tarball";
+       src = rcs;
+        inherit meta configureFlags; 
+        autoconfPhase = ''
+          cp -Rv ${gnulib} ../gnulib
+          chmod -R a+rwx ../gnulib
+          export PATH=$PATH:../gnulib
+          sh autogen.sh
+        '';
+        buildInputs = with pkgs; [ automake111x autoconf ed texinfo emacs];
+      };
+
+    build =
+      { system ? "x86_64-linux"
+      , tarball ? jobs.tarball {}
+      }:
+      let pkgs = import nixpkgs {inherit system;};
+      in with pkgs;
+      releaseTools.nixBuild {
+        name = "rcs" ;
+        src = tarball;
+        inherit meta configureFlags;
+        buildInputs = with pkgs; [ed];
+      } ;
+
+    coverage =
+      { tarball ? jobs.tarball {}
+      }:
+      with pkgs;
+
+      releaseTools.coverageAnalysis {
+        name = "rcs-coverage";
+        src = tarball;
+        inherit meta configureFlags;
+        buildInputs = with pkgs; [ed];
+      };
+
+  };
+
+in jobs
_______________________________________________
nix-commits mailing list
[email protected]
http://mail.cs.uu.nl/mailman/listinfo/nix-commits

Reply via email to