23 lines
542 B
Nix
23 lines
542 B
Nix
with import <nixpkgs> {}; # bring all of Nixpkgs into scope
|
|
|
|
stdenv.mkDerivation rec {
|
|
name= "etherpad-${version}";
|
|
version = "1.6.2";
|
|
|
|
buildInputs = [nodejs nodePackages.node2nix curl];
|
|
src = fetchFromGitHub {
|
|
owner = "ether";
|
|
repo = "etherpad-lite";
|
|
rev = "${version}";
|
|
sha256 = "10fgyzhxhrqk2nnwwn287nrcgzq7dizm0vhw05205b3s6gh4hy5q";
|
|
};
|
|
|
|
installPhase = ''
|
|
mkdir -p $out/
|
|
cp -R . $out/
|
|
cp $out/settings.json.template $out/settings.json
|
|
# cd $out/src
|
|
# node2nix -i package.json --flatten
|
|
'';
|
|
}
|