Initial commit of hydra forks

This commit is contained in:
Serĉanto de Scio 2020-01-28 10:24:03 +10:00
parent 4e260318b8
commit 705bb5dc0c
Signed by: sercanto
GPG key ID: A4122FF3971B6865
2 changed files with 34 additions and 0 deletions

20
roles/hydra-dev.nix Normal file
View file

@ -0,0 +1,20 @@
{ pkgs }:
let
hydraSrc = pkgs.fetchFromGitHub {
owner = "nixos";
repo = "hydra";
rev = "906d2493c5c74673ba317d0b5ce7d97b062bd39b";
sha256 = "0i7szp04c873gfmj1h0dcl5rsbzzldc160pcls8z9v6iphils34i";
};
in
pkgs.callPackage ./hydra-fork.nix {
nixpkgsPath = pkgs.path;
#patches = [
# (pkgs.fetchpatch {
# url = "https://github.com/NixOS/hydra/pull/648/commits/4171ab4c4fd576c516dc03ba64d1c7945f769af0.patch";
# sha256 = "1fxa2459kdws6qc419dv4084c1ssmys7kqg4ic7n643kybamsgrx";
# })
#];
src = hydraSrc;
}

14
roles/hydra-fork.nix Normal file
View file

@ -0,0 +1,14 @@
{ fetchFromGitHub, nixpkgsPath, src }:
let
hydraRelease = (import (src + "/release.nix") {
nixpkgs = nixpkgsPath;
hydraSrc = {
outPath = src;
rev = builtins.substring 0 6 src.rev;
revCount = 1234;
};
});
in
hydraRelease.build.x86_64-linux.overrideAttrs (drv: { })