spilt pgk and config
This commit is contained in:
18
module/etherpad/etherpad-pkg.nix
Normal file
18
module/etherpad/etherpad-pkg.nix
Normal file
@@ -0,0 +1,18 @@
|
|||||||
|
{ stdenv, fetchFromGitHub }:
|
||||||
|
|
||||||
|
stdenv.mkDerivation rec {
|
||||||
|
name= "etherpad-${version}";
|
||||||
|
version = "1.6.2";
|
||||||
|
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "ether";
|
||||||
|
repo = " etherpad-lite";
|
||||||
|
rev = "${version}";
|
||||||
|
sha256 = "1zzx851603apysmzgxn6zqg779yak8r5vnafycy454wcgq6lb0bf";
|
||||||
|
};
|
||||||
|
|
||||||
|
installPhase = ''
|
||||||
|
mkdir -p $out/
|
||||||
|
cp -R . $out/
|
||||||
|
'';
|
||||||
|
}
|
||||||
@@ -1,6 +1,8 @@
|
|||||||
{ config, lib, pkgs, ... }:
|
{ config, lib, pkgs, ... }:
|
||||||
|
|
||||||
{
|
{
|
||||||
|
imports = [ ./etherpad-pkg.nix ];
|
||||||
|
|
||||||
###### interface
|
###### interface
|
||||||
|
|
||||||
options = {
|
options = {
|
||||||
@@ -33,22 +35,3 @@
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
{ stdenv, fetchFromGitHub }:
|
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
|
||||||
name= "etherpad-${version}";
|
|
||||||
version = "1.6.2";
|
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
|
||||||
owner = "ether";
|
|
||||||
repo = " etherpad-lite";
|
|
||||||
rev = "${version}";
|
|
||||||
sha256 = "1zzx851603apysmzgxn6zqg779yak8r5vnafycy454wcgq6lb0bf";
|
|
||||||
};
|
|
||||||
|
|
||||||
installPhase = ''
|
|
||||||
mkdir -p $out/
|
|
||||||
cp -R . $out/
|
|
||||||
'';
|
|
||||||
}
|
|
||||||
|
|||||||
Reference in New Issue
Block a user