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

let
in stdenv.mkDerivation {
  name = "prosody-auth";
  src = fetchgit {
    url = "git://git.yggdrasil.li/prosody_auth";
    rev = "08f56ab877313cdeaa3084e2fe2a6a50f0cb0495";
    sha256 = "11hygwbwa14g3clca2izv76xki58h18iailx1l8z8vxyw977m0dd";
  };
  builder = builtins.toFile "builder.sh" ''
    source $stdenv/setup

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