git.iko.soy/typeable/nixpkgs
on master help sign in
styx: init at 0.1.0
commit3cc8f2108609706c35a5175b5e32db82000aeea9 authorEric Sagnes <eric.sagnes@gmail.com> dateFri 7 Oct 2016, 14:08 (10 years ago) parentcb1d475
2 files changed+45
pkgs/applications/misc/styx/default.nix+43 pkgs/top-level/all-packages.nix+2
pkgs/applications/misc/styx/default.nixnew file+43
@@ -0,0 +1,43 @@
1+{ stdenv, fetchFromGitHub, caddy, asciidoctor }:
2+
3+stdenv.mkDerivation rec {
4+ name = "styx-${version}";
5+ version = "0.1.0";
6+
7+ src = fetchFromGitHub {
8+ owner = "styx-static";
9+ repo = "styx";
10+ rev = "v${version}";
11+ sha256 = "0lz6mfawschfjg4mvfsqz9dv884x2lcg787zjdlnhdi5yqmjx29r";
12+ };
13+
14+ server = caddy.bin;
15+
16+ nativeBuildInputs = [ asciidoctor ];
17+
18+ setSourceRoot = "cd styx-*/src; export sourceRoot=`pwd`";
19+
20+ installPhase = ''
21+ mkdir $out
22+ install -D -m 777 $sourceRoot/styx.sh $out/bin/styx
23+
24+ mkdir -p $out/share/styx
25+ cp -r $sourceRoot/sample $out/share/styx
26+
27+ mkdir -p $out/share/doc/styx
28+ asciidoctor $sourceRoot/doc/manual.doc -o $out/share/doc/styx/index.html
29+
30+ substituteAllInPlace $out/bin/styx
31+ substituteAllInPlace $out/share/styx/sample/templates/feed.nix
32+ substituteAllInPlace $out/share/doc/styx/index.html
33+ '';
34+
35+ meta = with stdenv.lib; {
36+ description = "Nix based static site generator";
37+ maintainers = with maintainers; [ ericsagnes ];
38+ homepage = https://styx-static.github.io/styx-site/;
39+ downloadPage = https://github.com/styx-static/styx/;
40+ platforms = platforms.all;
41+ license = licenses.mit;
42+ };
43+}
pkgs/top-level/all-packages.nix+2
@@ -14315,6 +14315,8 @@ in
1431514315
1431614316 ssvnc = callPackage ../applications/networking/remote/ssvnc { };
1431714317
14318+ styx = callPackage ../applications/misc/styx { };
14319+
1431814320 tecoc = callPackage ../applications/editors/tecoc { };
1431914321
1432014322 viber = callPackage ../applications/networking/instant-messengers/viber { };