Merge remote-tracking branch 'lass/master'

This commit is contained in:
makefu 2018-09-17 01:14:03 +02:00
commit 12a3936e06
No known key found for this signature in database
GPG Key ID: 36F7711F3FC0F225
6 changed files with 40 additions and 6 deletions

View File

@ -16,6 +16,18 @@
krebs.ci = { krebs.ci = {
enable = true; enable = true;
repos = { repos = {
disko.urls = [
"http://cgit.gum.r/disko"
"http://cgit.hotdog.r/disko"
"http://cgit.ni.r/disko"
"http://cgit.prism.r/disko"
];
nix_writers.urls = [
"http://cgit.hotdog.r/nix-writers"
"http://cgit.ni.r/nix-writers"
"http://cgit.prism.r/nix-writers"
"https://git.ingolf-wagner.de/krebs/nix-writers.git"
];
stockholm.urls = [ stockholm.urls = [
"http://cgit.enklave.r/stockholm" "http://cgit.enklave.r/stockholm"
"http://cgit.gum.r/stockholm" "http://cgit.gum.r/stockholm"

View File

@ -10,6 +10,7 @@ with import <stockholm/lib>;
]; ];
extraEnviron = { extraEnviron = {
REAKTOR_HOST = "irc.freenode.org"; REAKTOR_HOST = "irc.freenode.org";
REAKTOR_NICKSERV_PASSWORD = "/var/lib/Reaktor/reaktor_nickserv_password";
}; };
plugins = with pkgs.ReaktorPlugins; [ plugins = with pkgs.ReaktorPlugins; [
sed-plugin sed-plugin
@ -21,4 +22,9 @@ with import <stockholm/lib>;
(attrValues (todo "agenda")) (attrValues (todo "agenda"))
; ;
}; };
krebs.secret.files.nix-serve-key = {
path = "/var/lib/Reaktor/reaktor_nickserv_password";
owner.name = "Reaktor";
source-path = toString <secrets> + "/reaktor_nickserv_password";
};
} }

View File

@ -100,6 +100,10 @@ let
command=[ command=[
new_steps[new_step] new_steps[new_step]
], ],
env={
"NIX_REMOTE": "daemon",
"NIX_PATH": "secrets=/var/src/stockholm/null:/var/src",
},
timeout=90001, timeout=90001,
workdir='build', # TODO figure out why we need this? workdir='build', # TODO figure out why we need this?
)]) )])
@ -124,7 +128,7 @@ let
}, },
name="get_steps", name="get_steps",
command=["${getJobs}"], command=["${getJobs}"],
property="steps_json" extract_fn=lambda rc, stdout, stderr: { 'steps_json': stdout },
)) ))
f_${name}.addStep(StepToStartMoreSteps(command=["echo"])) # TODO remove dummy command from here f_${name}.addStep(StepToStartMoreSteps(command=["echo"])) # TODO remove dummy command from here

View File

@ -1,8 +1,8 @@
{ lib, pkgs,python3Packages,fetchurl, ... }: { lib, pkgs, python3Packages, fetchFromGitHub, ... }:
python3Packages.buildPythonPackage rec { python3Packages.buildPythonPackage rec {
name = "Reaktor-${version}"; name = "Reaktor-${version}";
version = "0.5.1"; version = "0.6.0";
doCheck = false; doCheck = false;
@ -10,9 +10,11 @@ python3Packages.buildPythonPackage rec {
python3Packages.docopt python3Packages.docopt
python3Packages.requests python3Packages.requests
]; ];
src = fetchurl { src = fetchFromGitHub {
url = "https://pypi.python.org/packages/source/R/Reaktor/Reaktor-${version}.tar.gz"; owner = "krebs";
sha256 = "0dn9r0cyxi1sji2pnybsrc4hhaaq7hmf235nlgkrxqlsdb7y6n6n"; repo = "Reaktor";
rev = version;
sha256 = "0nsnv1rixmlg5wkb74b4f5bycb42b9rp4b14hijh558hbsa1b9am";
}; };
meta = { meta = {
homepage = http://krebsco.de/; homepage = http://krebsco.de/;

View File

@ -11,6 +11,8 @@ with (import <stockholm/lib>);
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
ag ag
brain
dic
nmap nmap
git-preview git-preview
]; ];

View File

@ -34,6 +34,10 @@ let
rules = concatMap make-rules (attrValues repos); rules = concatMap make-rules (attrValues repos);
public-repos = mapAttrs make-public-repo { public-repos = mapAttrs make-public-repo {
Reaktor = {
cgit.desc = "Reaktor IRC bot";
cgit.section = "software";
};
buildbot-classic = { buildbot-classic = {
cgit.desc = "fork of buildbot"; cgit.desc = "fork of buildbot";
cgit.section = "software"; cgit.section = "software";
@ -54,6 +58,10 @@ let
cgit.desc = "take a rss feed and a timeout and print it to stdout"; cgit.desc = "take a rss feed and a timeout and print it to stdout";
cgit.section = "software"; cgit.section = "software";
}; };
nix-writers = {
cgit.desc = "high level writers for nix";
cgit.section = "software";
};
nixpkgs = { nixpkgs = {
cgit.desc = "nixpkgs fork"; cgit.desc = "nixpkgs fork";
cgit.section = "configuration"; cgit.section = "configuration";