1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-09-11 15:08:33 +01:00

styx: 0.2.0 -> 0.3.1 (#20118)

This commit is contained in:
Eric Sagnes 2016-11-03 12:58:53 +09:00 committed by Franz Pletz
parent 3b42bfa77e
commit 7668d3e69b

View file

@ -2,13 +2,13 @@
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
name = "styx-${version}"; name = "styx-${version}";
version = "0.2.0"; version = "0.3.1";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "styx-static"; owner = "styx-static";
repo = "styx"; repo = "styx";
rev = "v${version}"; rev = "v${version}";
sha256 = "1bcd0ss628mhchrl85fy6acxcxqvm1d3qywfaxhikahl1r7inpwg"; sha256 = "0wyibdyi4ld0kfhng5ldb2rlgjrci014fahxn7nnchlg7dvcc5ni";
}; };
server = caddy.bin; server = caddy.bin;
@ -19,13 +19,14 @@ stdenv.mkDerivation rec {
installPhase = '' installPhase = ''
mkdir $out mkdir $out
install -D -m 777 $sourceRoot/styx.sh $out/bin/styx install -D -m 777 styx.sh $out/bin/styx
mkdir -p $out/share/styx mkdir -p $out/share/styx
cp -r $sourceRoot/sample $out/share/styx cp -r lib $out/share/styx
cp -r scaffold $out/share/styx
mkdir -p $out/share/doc/styx mkdir -p $out/share/doc/styx
asciidoctor $sourceRoot/doc/manual.doc -o $out/share/doc/styx/index.html asciidoctor doc/manual.adoc -o $out/share/doc/styx/index.html
substituteAllInPlace $out/bin/styx substituteAllInPlace $out/bin/styx
substituteAllInPlace $out/share/doc/styx/index.html substituteAllInPlace $out/share/doc/styx/index.html