summaryrefslogtreecommitdiff
path: root/custom/prosody-auth.nix
blob: e020fa90d532ad03a4d18ea4b3696e0b463da5be (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
{ stdenv
, fetchgit
}:

let
in stdenv.mkDerivation {
  name = "prosody-auth";
  src = fetchgit (builtins.fromJSON ''
    {
      "url": "git://git.yggdrasil.li/prosody_auth",
      "rev": "822d502c0bcd9f536356d9922f6886dbe3210ecf",
      "sha256": "0829xiawnfpviky55mgixhjxh4fwslcn6q7ihsa977d21x361fsl"
    }
  '');
  builder = builtins.toFile "builder.sh" ''
    source $stdenv/setup

    mkdir -p $out
    cp -rv $src/mod_auth_custom $out
  '';
}