Compare commits

..

No commits in common. "b8be3d80a8273237ace7238c03236c32c594388e" and "3a471433ed2005c2ebc61b84c9c441d68eac2c37" have entirely different histories.

3 changed files with 20 additions and 70 deletions

View file

@ -1,27 +1,24 @@
---
kind: pipeline
type: exec
name: NixOS config check
name: check config
steps:
- name: format check
image: nixos/nix
commands:
- nix develop -c nixpkgs-fmt .
- nix-shell -p nixpkgs-fmt --run 'nixpkgs-fmt . --check'
- name: notifiy
commands:
- nix run .#matrix-notifier
environment:
ADDRESS:
- name: notify
image: plugins/matrix
settings:
homeserver:
from_secret: matrix_homeserver
ROOM:
roomid:
from_secret: matrix_roomid
USER:
username:
from_secret: matrix_username
PASS:
password:
from_secret: matrix_password
when:
trigger:
status:
- failure
- success
...

View file

@ -14,8 +14,6 @@ rec {
lohr = pkgs.callPackage ./lohr { };
matrix-notifier = pkgs.callPackage ./matrix-notifier { };
nolimips = pkgs.callPackage ./nolimips { };
vimix-cursors = pkgs.callPackage ./vimix-cursors { };

View file

@ -1,45 +0,0 @@
{ curl, jq, fetchFromGitHub, lib, makeWrapper, stdenvNoCC }:
stdenvNoCC.mkDerivation rec {
pname = "matrix-notifier";
version = "0.1.0";
src = fetchFromGitHub {
owner = "ambroisie";
repo = "matrix-notifier";
rev = "v${version}";
sha256 = "sha256-MbtxLUVL4bBS66TJTXky/0blR9lFKzLkRccck7Um2Co=";
};
phases = [ "installPhase" "fixupPhase" ];
nativeBuildInputs = [
makeWrapper
];
installPhase = ''
mkdir -p $out/bin
cp $src/${pname} $out/bin/${pname}
chmod a+x $out/bin/${pname}
'';
wrapperPath = lib.makeBinPath [
curl
jq
];
fixupPhase = ''
patchShebangs $out/bin/${pname}
wrapProgram $out/bin/${pname} --prefix PATH : "${wrapperPath}"
'';
meta = with lib; {
description = ''
A very simple bash script that can be used to send a message to
a Matrix room
'';
homepage = "https://gitea.belanyi.fr/ambroisie/${pname}";
license = licenses.mit;
platforms = platforms.unix;
maintainers = with maintainers; [ ambroisie ];
};
}