1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-25 23:20:55 +00:00

styx: 0.4.0 -> 0.5.0

This commit is contained in:
Eric Sagnes 2017-01-18 16:28:40 +09:00
parent 006d8c6484
commit 310219c524
2 changed files with 38 additions and 19 deletions

View file

@ -3,13 +3,13 @@
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
name = "styx-${version}"; name = "styx-${version}";
version = "0.4.0"; version = "0.5.0";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "styx-static"; owner = "styx-static";
repo = "styx"; repo = "styx";
rev = "v${version}"; rev = "v${version}";
sha256 = "1s4465absxqwlwhn5rf51h0s1rw25ls581yjg0fy9kbyhy979qvs"; sha256 = "0v36i40cwrajsd02xjfdldih5g493m28lhzgjg1gd3pwk2yd6rm1";
}; };
setSourceRoot = "cd styx-*/src; export sourceRoot=`pwd`"; setSourceRoot = "cd styx-*/src; export sourceRoot=`pwd`";
@ -26,20 +26,27 @@ stdenv.mkDerivation rec {
multimarkdown multimarkdown
]; ];
outputs = [ "out" "lib" ];
installPhase = '' installPhase = ''
mkdir $out mkdir $out
install -D -m 777 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 lib $out/share/styx
cp -r scaffold $out/share/styx cp -r scaffold $out/share/styx
cp builder.nix $out/share/styx cp builder.nix $out/share/styx
mkdir -p $out/share/doc/styx mkdir -p $out/share/doc/styx
asciidoctor doc/manual.adoc -o $out/share/doc/styx/index.html asciidoctor doc/index.adoc -o $out/share/doc/styx/index.html
asciidoctor doc/styx-themes.adoc -o $out/share/doc/styx/styx-themes.html
cp -r doc/imgs $out/share/doc/styx/
substituteAllInPlace $out/bin/styx substituteAllInPlace $out/bin/styx
substituteAllInPlace $out/share/doc/styx/index.html substituteAllInPlace $out/share/doc/styx/index.html
substituteAllInPlace $out/share/doc/styx/styx-themes.html
mkdir $lib
cp -r lib/* $lib
''; '';
meta = with stdenv.lib; { meta = with stdenv.lib; {

View file

@ -7,7 +7,7 @@ let
src = fetchFromGitHub ({ src = fetchFromGitHub ({
owner = "styx-static"; owner = "styx-static";
repo = "styx-theme-${args.themeName}"; repo = "styx-theme-${args.themeName}";
} // args.src); } // args.src);
installPhase = '' installPhase = ''
@ -28,10 +28,10 @@ in
{ {
agency = mkThemeDrv { agency = mkThemeDrv {
themeName = "agency"; themeName = "agency";
version = "2016-12-03"; version = "20167-01-17";
src = { src = {
rev = "3604239cc5d940eee9c14ad2540d68a53cfebd7e"; rev = "3201f65841c9e7f97cc0ab0264cafb01b1620ed7";
sha256 = "1kk8d5a3lb7fx1avivjd49gv0ffq7ppiswmwqlcsq87h2dbrqf61"; sha256 = "1b3547lzmhs1lmr9gln1yvh5xrsg92m8ngrjwf0ny91y81x04da6";
}; };
meta = { meta = {
license = stdenv.lib.licenses.asl20; license = stdenv.lib.licenses.asl20;
@ -44,28 +44,40 @@ in
}; };
}; };
generic-templates = mkThemeDrv {
themeName = "generic-templates";
version = "2017-01-18";
src = {
rev = "af7cd527584322d8731a306a137a1794b18ad71a";
sha256 = "18zk4qihi8iw5dxkm9sf6cjai1mf22l6q1ykkrgaxjd5709is0li";
};
meta = {
license = stdenv.lib.licenses.mit;
};
};
hyde = mkThemeDrv { hyde = mkThemeDrv {
themeName = "hyde"; themeName = "hyde";
version = "2016-12-03"; version = "2017-01-17";
src = { src = {
rev = "b6b9b77839959fbf3c9ca3a4488617fa1831cd28"; rev = "22caf4edc738f399bb1013d8e968d111c7fa2a59";
sha256 = "0d1k03mjn08s3rpc5rdivb8ahr345kblhqyihxnfgd1501ih9pg6"; sha256 = "1a2j3m941vc2pyb1dz341ww5l3xblg527szfrfqh588lmsrkdqb6";
}; };
meta = { meta = {
license = stdenv.lib.licenses.mit; license = stdenv.lib.licenses.mit;
longDescription = '' longDescription = ''
Hyde is a brazen two-column Jekyll theme that pairs a prominent sidebar Port of the Jekyll Hyde theme to styx; Hyde is a brazen two-column
with uncomplicated content. Styx theme that pairs a prominent sidebar with uncomplicated content.
''; '';
}; };
}; };
orbit = mkThemeDrv { orbit = mkThemeDrv {
themeName = "orbit"; themeName = "orbit";
version = "2016-12-03"; version = "2017-01-17";
src = { src = {
rev = "1d41745c689c4336d4e2bfbb2483b80e67ec96e4"; rev = "b5896e25561f05e026b34d04ad95a647ddfc3d03";
sha256 = "19pp9dykqxmrixn3cvqpdpcqy547y9n5izqhz0c4a11mmm0v3v64"; sha256 = "11p11f2d0swgjil5hfx153yw13p7pcp6fwx1bnvxrlfmmx9x2yj5";
}; };
meta = { meta = {
license = stdenv.lib.licenses.cc-by-30; license = stdenv.lib.licenses.cc-by-30;
@ -77,10 +89,10 @@ in
showcase = mkThemeDrv { showcase = mkThemeDrv {
themeName = "showcase"; themeName = "showcase";
version = "2016-12-04"; version = "2017-01-17";
src = { src = {
rev = "33feb0a09183e88d3580e9444ea36a255dffef60"; rev = "1b4b9d4af29c05aaadfd58233f0e3f61fac726af";
sha256 = "01ighlnrja442ip5fhllydl77bfdz8yig80spmizivdfxdrdiyyf"; sha256 = "0mwd1ycwvlv15y431336wwlv8mdv0ikz1aymh3yxhjyxqllc2snk";
}; };
meta = { meta = {
license = stdenv.lib.licenses.mit; license = stdenv.lib.licenses.mit;