styx: 0.6.0 -> 0.7.0
This commit is contained in:
@@ -4,22 +4,22 @@
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "styx-${version}";
|
||||
version = "0.6.0";
|
||||
version = "0.7.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "styx-static";
|
||||
repo = "styx";
|
||||
rev = "v${version}";
|
||||
sha256 = "1dl6zmic8bv17f3ib8by66c2fj7izlnv9dh2cfa2m0ipkxk930vk";
|
||||
sha256 = "044zpj92w96csaddf1qnnc2w2w9iq4b7rzlqqsqnd1s0a87lm1qd";
|
||||
};
|
||||
|
||||
setSourceRoot = "cd styx-*/src; export sourceRoot=`pwd`";
|
||||
|
||||
server = "${caddy.bin}/bin/caddy";
|
||||
linkcheck = "${linkchecker}/bin/linkchecker";
|
||||
|
||||
nativeBuildInputs = [ asciidoctor ];
|
||||
|
||||
outputs = [ "out" "lib" "themes" ];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
file
|
||||
lessc
|
||||
@@ -30,39 +30,42 @@ stdenv.mkDerivation rec {
|
||||
(python27.withPackages (ps: [ ps.parsimonious ]))
|
||||
];
|
||||
|
||||
outputs = [ "out" "lib" ];
|
||||
|
||||
installPhase = ''
|
||||
mkdir $out
|
||||
install -D -m 777 styx.sh $out/bin/styx
|
||||
install -D -m 777 src/styx.sh $out/bin/styx
|
||||
|
||||
mkdir -p $out/share/styx
|
||||
cp -r scaffold $out/share/styx
|
||||
cp -r nix $out/share/styx
|
||||
mkdir -p $out/share/styx-src
|
||||
cp -r ./* $out/share/styx-src
|
||||
|
||||
mkdir -p $out/share/doc/styx
|
||||
asciidoctor doc/index.adoc -o $out/share/doc/styx/index.html
|
||||
asciidoctor doc/styx-themes.adoc -o $out/share/doc/styx/styx-themes.html
|
||||
asciidoctor doc/library.adoc -o $out/share/doc/styx/library.html
|
||||
cp -r doc/highlight $out/share/doc/styx/
|
||||
cp -r doc/imgs $out/share/doc/styx/
|
||||
cp -r tools $out/share
|
||||
asciidoctor src/doc/index.adoc -o $out/share/doc/styx/index.html
|
||||
asciidoctor src/doc/styx-themes.adoc -o $out/share/doc/styx/styx-themes.html
|
||||
asciidoctor src/doc/library.adoc -o $out/share/doc/styx/library.html
|
||||
cp -r src/doc/highlight $out/share/doc/styx/
|
||||
cp -r src/doc/imgs $out/share/doc/styx/
|
||||
|
||||
substituteAllInPlace $out/bin/styx
|
||||
substituteAllInPlace $out/share/doc/styx/index.html
|
||||
substituteAllInPlace $out/share/doc/styx/styx-themes.html
|
||||
substituteAllInPlace $out/share/doc/styx/library.html
|
||||
|
||||
mkdir -p $out/share/styx/scaffold
|
||||
cp -r src/scaffold $out/share/styx
|
||||
cp -r src/tools $out/share/styx
|
||||
|
||||
mkdir $lib
|
||||
cp -r lib/* $lib
|
||||
cp -r src/lib/* $lib
|
||||
|
||||
mkdir $themes
|
||||
cp -r themes/* $themes
|
||||
'';
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "Nix based static site generator";
|
||||
maintainers = with maintainers; [ ericsagnes ];
|
||||
homepage = https://styx-static.github.io/styx-site/;
|
||||
description = "Nix based static site generator";
|
||||
maintainers = with maintainers; [ ericsagnes ];
|
||||
homepage = https://styx-static.github.io/styx-site/;
|
||||
downloadPage = https://github.com/styx-static/styx/;
|
||||
platforms = platforms.all;
|
||||
license = licenses.mit;
|
||||
platforms = platforms.all;
|
||||
license = licenses.mit;
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user