~npalix/coccinelle/upstream

« back to all changes in this revision

Viewing changes to release.nix

  • Committer: Sébastien Hinderer
  • Date: 2015-08-10 12:22:12 UTC
  • mto: (4116.2.93)
  • mto: This revision was merged to the branch mainline in revision 4121.
  • Revision ID: git-v1:848f85e256516330c06f5fd8dc782b854ed9aa03
Remove a bunch of trailing whitespaces and blank lines at end of files.

Show diffs side-by-side

added added

removed removed

Lines of Context:
9
9
 
10
10
 
11
11
let
12
 
  
 
12
 
13
13
  # version information
14
14
  version = builtins.readFile ./version;
15
15
  versionSuffix = if officialRelease then "" else "pre${toString cocciSrc.revCount}-${cocciSrc.gitTag}";
42
42
        local PREVHOME=$HOME
43
43
        export HOME=$TMPDIR    # the latex installation needs to write to the $HOME directory, so rename it here
44
44
      '';
45
 
      
 
45
 
46
46
      dontCopyDist = 1; # we'll copy the tarball to the tarballs folder ourselves (and rename it)
47
47
      postDist = ''
48
48
        export HOME=$PREVHOME  # restore the home directory
193
193
  # Several configurations testing different python versions.
194
194
  # We exlicitly pass the "--enable-python" flag so that the
195
195
  # build should fail if no suitable python can be detected.
196
 
  pythonCfgs = 
 
196
  pythonCfgs =
197
197
    map mkCfgPython [
198
198
      ( _ : { name = "no-python"; pythons = []; flags = []; })
199
199
 
323
323
      buildInputs = cfg.extras ++ [ ncurses ocamlPackages.ocaml ] ++ cfg.ocamls ++ cfg.pythons;
324
324
      configureFlags = pkgs.lib.concatStringsSep " " flags; # hmm, flags are now not allowed to contain spaces
325
325
      doCheck = true;
326
 
      
 
326
 
327
327
      buildPhase = ''
328
328
        mkdir -p "$out/nix-support/"
329
329
        touch "$out/nix-support/make.log"
369
369
  # package builder for Debian-based OS'ses
370
370
  makeDeb =
371
371
    system: diskImageFun:
372
 
    
 
372
 
373
373
    with import nixpkgs { inherit system; };
374
374
    releaseTools.debBuild {
375
375
      name = "coccinelle-deb";
585
585
      dontInstall = false;
586
586
      doCheck = false;
587
587
    };
588
 
  
 
588
 
589
589
  #
590
590
  # collections of build tasks
591
591
  #