forked from M-Labs/nix-scripts
tecpak: init
This commit is contained in:
parent
891bb0b31f
commit
e138bfb7f7
16
hydra/tecpak.json
Normal file
16
hydra/tecpak.json
Normal file
@ -0,0 +1,16 @@
|
||||
{
|
||||
"enabled": 1,
|
||||
"hidden": true,
|
||||
"description": "js",
|
||||
"nixexprinput": "nixScripts",
|
||||
"nixexprpath": "hydra/tecpak.nix",
|
||||
"checkinterval": 300,
|
||||
"schedulingshares": 10,
|
||||
"enableemail": false,
|
||||
"emailoverride": "",
|
||||
"keepnr": 10,
|
||||
"inputs": {
|
||||
"nixpkgs": { "type": "git", "value": "git://github.com/NixOS/nixpkgs-channels nixos-19.09", "emailresponsible": false },
|
||||
"nixScripts": { "type": "git", "value": "https://git.m-labs.hk/astro/nix-scripts.git tecpak", "emailresponsible": false }
|
||||
}
|
||||
}
|
28
hydra/tecpak.nix
Normal file
28
hydra/tecpak.nix
Normal file
@ -0,0 +1,28 @@
|
||||
{ pkgs ? import <nixpkgs> {}}:
|
||||
{
|
||||
jobsets = pkgs.runCommand "spec.json" {}
|
||||
''
|
||||
cat > $out << EOF
|
||||
{
|
||||
"tecpak": {
|
||||
"enabled": 1,
|
||||
"hidden": false,
|
||||
"description": "tecpak",
|
||||
"nixexprinput": "nixScripts",
|
||||
"nixexprpath": "tecpak.nix",
|
||||
"checkinterval": 300,
|
||||
"schedulingshares": 10,
|
||||
"enableemail": false,
|
||||
"emailoverride": "",
|
||||
"keepnr": 10,
|
||||
"inputs": {
|
||||
"nixpkgs": { "type": "git", "value": "git://github.com/NixOS/nixpkgs-channels nixos-19.09", "emailresponsible": false },
|
||||
"tecpak": { "type": "git", "value": "https://git.m-labs.hk/M-Labs/ionpak-thermostat.git", "emailresponsible": false },
|
||||
"mozillaOverlay": { "type": "git", "value": "https://github.com/mozilla/nixpkgs-mozilla.git", "emailresponsible": false },
|
||||
"nixScripts": { "type": "git", "value": "https://git.m-labs.hk/astro/nix-scripts.git tecpak", "emailresponsible": false }
|
||||
}
|
||||
}
|
||||
}
|
||||
EOF
|
||||
'';
|
||||
}
|
16
tecpak.nix
Normal file
16
tecpak.nix
Normal file
@ -0,0 +1,16 @@
|
||||
{ pkgs ? import <nixpkgs> {},
|
||||
tecpak-nix ? import <tecpak> { mozillaOverlay = import <mozillaOverlay>; },
|
||||
}:
|
||||
with pkgs;
|
||||
{ tecpak = lib.hydraJob (tecpak-nix.firmware
|
||||
.overrideAttrs (oldAttrs: {
|
||||
installPhase = ''
|
||||
${oldAttrs.installPhase}
|
||||
|
||||
mkdir -p $out/nix-support
|
||||
for f in $out/*.elf ; do
|
||||
echo file binary-dist $f >> $out/nix-support/hydra-build-products
|
||||
done
|
||||
'';
|
||||
}));
|
||||
}
|
Loading…
Reference in New Issue
Block a user