Skip to content
Permalink
Browse files

Add flake.nix

  • Loading branch information...
edolstra committed May 8, 2019
1 parent ff64583 commit 4172b5b29081bb8ff0b113bbfa55f7983589c6e0
Showing with 32 additions and 1 deletion.
  1. +9 −0 flake.lock
  2. +21 −0 flake.nix
  3. +2 −1 release.nix
@@ -0,0 +1,9 @@
{
"nonFlakeRequires": {},
"requires": {
"nixpkgs": {
"uri": "github:edolstra/nixpkgs/a4d896e89932e873c4117908d558db6210fa3b56"
}
},
"version": 1
}

This comment has been minimized.

Copy link
@grahamc

grahamc May 8, 2019

Member

Nix's flake.lock should output a trailing "\n" I think

@@ -0,0 +1,21 @@
{
name = "hydra";

description = "A Nix-based continuous build system";

epoch = 2019;

requires = [ "nixpkgs" ];

provides = deps: rec {

hydraJobs = import ./release.nix {
hydraSrc = deps.self;
nixpkgs = deps.nixpkgs;
};

packages.hydra = hydraJobs.build.x86_64-linux;

defaultPackage = packages.hydra;
};
}
@@ -30,7 +30,8 @@ let
environment.systemPackages = [ pkgs.perlPackages.LWP pkgs.perlPackages.JSON ];
};

version = builtins.readFile ./version + "." + toString hydraSrc.revCount + "." + hydraSrc.rev;
# FIXME: use commit date.
version = builtins.readFile ./version + "." + toString hydraSrc.revCount or 0 + "." + hydraSrc.shortRev or "0000000";

in

0 comments on commit 4172b5b

Please sign in to comment.
You can’t perform that action at this time.