33 lines
868 B
Nix
33 lines
868 B
Nix
{ lib
|
|
, stdenv
|
|
, fetchFromGitLab
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "switch-wayf";
|
|
version = "unstable-16-02-2024";
|
|
|
|
src = fetchFromGitLab {
|
|
domain = "gitlab.switch.ch";
|
|
owner = "aai";
|
|
repo = "SWITCHwayf";
|
|
rev = "96747a93f69e4a7f19f23ee241a526abe9086e2c";
|
|
hash = "sha256-57apFii/P0uj2BmJqx2NLILrlqdKbI8UDUNiJpUZTMo=";
|
|
};
|
|
|
|
installPhase = ''
|
|
mkdir -p $out/
|
|
cp -r www $out/
|
|
cp -r lib $out/
|
|
ln -s $out/www/WAYF $out/www/WAYF.php
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "SAML Identity Provider Discovery Service implementation developed by SWITCH";
|
|
homepage = "https://gitlab.switch.ch/aai/SWITCHwayf";
|
|
changelog = "https://gitlab.switch.ch/aai/SWITCHwayf/-/blob/${src.rev}/CHANGES.md";
|
|
license = licenses.asl20;
|
|
maintainers = with maintainers; [ raitobezarius ];
|
|
platforms = platforms.all;
|
|
};
|
|
}
|