tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
styx: 0.6.0 -> 0.7.0
Eric Sagnes
8 years ago
833467ed
1799e146
+25
-128
3 changed files
expand all
collapse all
unified
split
pkgs
applications
misc
styx
default.nix
themes.nix
top-level
all-packages.nix
+25
-22
pkgs/applications/misc/styx/default.nix
···
4
4
5
5
stdenv.mkDerivation rec {
6
6
name = "styx-${version}";
7
7
-
version = "0.6.0";
7
7
+
version = "0.7.0";
8
8
9
9
src = fetchFromGitHub {
10
10
owner = "styx-static";
11
11
repo = "styx";
12
12
rev = "v${version}";
13
13
-
sha256 = "1dl6zmic8bv17f3ib8by66c2fj7izlnv9dh2cfa2m0ipkxk930vk";
13
13
+
sha256 = "044zpj92w96csaddf1qnnc2w2w9iq4b7rzlqqsqnd1s0a87lm1qd";
14
14
};
15
15
-
16
16
-
setSourceRoot = "cd styx-*/src; export sourceRoot=`pwd`";
17
15
18
16
server = "${caddy.bin}/bin/caddy";
19
17
linkcheck = "${linkchecker}/bin/linkchecker";
20
18
21
19
nativeBuildInputs = [ asciidoctor ];
22
20
21
21
+
outputs = [ "out" "lib" "themes" ];
22
22
+
23
23
propagatedBuildInputs = [
24
24
file
25
25
lessc
···
30
30
(python27.withPackages (ps: [ ps.parsimonious ]))
31
31
];
32
32
33
33
-
outputs = [ "out" "lib" ];
34
34
-
35
33
installPhase = ''
36
34
mkdir $out
37
37
-
install -D -m 777 styx.sh $out/bin/styx
35
35
+
install -D -m 777 src/styx.sh $out/bin/styx
38
36
39
39
-
mkdir -p $out/share/styx
40
40
-
cp -r scaffold $out/share/styx
41
41
-
cp -r nix $out/share/styx
37
37
+
mkdir -p $out/share/styx-src
38
38
+
cp -r ./* $out/share/styx-src
42
39
43
40
mkdir -p $out/share/doc/styx
44
44
-
asciidoctor doc/index.adoc -o $out/share/doc/styx/index.html
45
45
-
asciidoctor doc/styx-themes.adoc -o $out/share/doc/styx/styx-themes.html
46
46
-
asciidoctor doc/library.adoc -o $out/share/doc/styx/library.html
47
47
-
cp -r doc/highlight $out/share/doc/styx/
48
48
-
cp -r doc/imgs $out/share/doc/styx/
49
49
-
cp -r tools $out/share
41
41
+
asciidoctor src/doc/index.adoc -o $out/share/doc/styx/index.html
42
42
+
asciidoctor src/doc/styx-themes.adoc -o $out/share/doc/styx/styx-themes.html
43
43
+
asciidoctor src/doc/library.adoc -o $out/share/doc/styx/library.html
44
44
+
cp -r src/doc/highlight $out/share/doc/styx/
45
45
+
cp -r src/doc/imgs $out/share/doc/styx/
50
46
51
47
substituteAllInPlace $out/bin/styx
52
48
substituteAllInPlace $out/share/doc/styx/index.html
53
49
substituteAllInPlace $out/share/doc/styx/styx-themes.html
54
50
substituteAllInPlace $out/share/doc/styx/library.html
55
51
52
52
+
mkdir -p $out/share/styx/scaffold
53
53
+
cp -r src/scaffold $out/share/styx
54
54
+
cp -r src/tools $out/share/styx
55
55
+
56
56
mkdir $lib
57
57
-
cp -r lib/* $lib
57
57
+
cp -r src/lib/* $lib
58
58
+
59
59
+
mkdir $themes
60
60
+
cp -r themes/* $themes
58
61
'';
59
62
60
63
meta = with stdenv.lib; {
61
61
-
description = "Nix based static site generator";
62
62
-
maintainers = with maintainers; [ ericsagnes ];
63
63
-
homepage = https://styx-static.github.io/styx-site/;
64
64
+
description = "Nix based static site generator";
65
65
+
maintainers = with maintainers; [ ericsagnes ];
66
66
+
homepage = https://styx-static.github.io/styx-site/;
64
67
downloadPage = https://github.com/styx-static/styx/;
65
65
-
platforms = platforms.all;
66
66
-
license = licenses.mit;
68
68
+
platforms = platforms.all;
69
69
+
license = licenses.mit;
67
70
};
68
71
}
-104
pkgs/applications/misc/styx/themes.nix
···
1
1
-
{ fetchFromGitHub, stdenv }:
2
2
-
3
3
-
let
4
4
-
5
5
-
mkThemeDrv = args: stdenv.mkDerivation {
6
6
-
name = "styx-theme-${args.themeName}-${args.version}";
7
7
-
8
8
-
src = fetchFromGitHub ({
9
9
-
owner = "styx-static";
10
10
-
repo = "styx-theme-${args.themeName}";
11
11
-
} // args.src);
12
12
-
13
13
-
installPhase = ''
14
14
-
mkdir $out
15
15
-
cp -r * $out/
16
16
-
'';
17
17
-
18
18
-
preferLocalBuild = true;
19
19
-
20
20
-
meta = with stdenv.lib; {
21
21
-
maintainer = with maintainers; [ ericsagnes ];
22
22
-
description = "${args.themeName} theme for styx";
23
23
-
platforms = platforms.all;
24
24
-
} // args.meta;
25
25
-
};
26
26
-
27
27
-
in
28
28
-
{
29
29
-
agency = mkThemeDrv rec {
30
30
-
themeName = "agency";
31
31
-
version = "0.6.0";
32
32
-
src = {
33
33
-
rev = "v${version}";
34
34
-
sha256 = "1i9bajzgmxd3ffvgic6wwnqijsgkfr2mfdijkgw9yf3bxcdq5cb6";
35
35
-
};
36
36
-
meta = {
37
37
-
license = stdenv.lib.licenses.asl20;
38
38
-
longDescription = ''
39
39
-
Agency Theme is a one page portfolio for companies and freelancers.
40
40
-
This theme features several content sections, a responsive portfolio
41
41
-
grid with hover effects, full page portfolio item modals, a timeline,
42
42
-
and a contact form.
43
43
-
'';
44
44
-
};
45
45
-
};
46
46
-
47
47
-
generic-templates = mkThemeDrv rec {
48
48
-
themeName = "generic-templates";
49
49
-
version = "0.6.0";
50
50
-
src = {
51
51
-
rev = "v${version}";
52
52
-
sha256 = "0wr2687pffczn0sns1xvqxr2gpf5v9j64zbj6q9f7km6bq0zpiiy";
53
53
-
};
54
54
-
meta = {
55
55
-
license = stdenv.lib.licenses.mit;
56
56
-
};
57
57
-
};
58
58
-
59
59
-
hyde = mkThemeDrv rec {
60
60
-
themeName = "hyde";
61
61
-
version = "0.6.0";
62
62
-
src = {
63
63
-
rev = "v${version}";
64
64
-
sha256 = "0yca76p297ymxd049fkcpw8bca5b9yvv36707z31jbijriy50zxb";
65
65
-
};
66
66
-
meta = {
67
67
-
license = stdenv.lib.licenses.mit;
68
68
-
longDescription = ''
69
69
-
Port of the Jekyll Hyde theme to styx; Hyde is a brazen two-column
70
70
-
Styx theme that pairs a prominent sidebar with uncomplicated content.
71
71
-
'';
72
72
-
};
73
73
-
};
74
74
-
75
75
-
orbit = mkThemeDrv rec {
76
76
-
themeName = "orbit";
77
77
-
version = "0.6.0";
78
78
-
src = {
79
79
-
rev = "v${version}";
80
80
-
sha256 = "0qdx1r7dcycr5hzl9ix70pl4xf0426ghpi1lgh61zdpdhcch0xfi";
81
81
-
};
82
82
-
meta = {
83
83
-
license = stdenv.lib.licenses.cc-by-30;
84
84
-
longDescription = ''
85
85
-
Orbit is a free resume/CV template designed for developers.
86
86
-
'';
87
87
-
};
88
88
-
};
89
89
-
90
90
-
showcase = mkThemeDrv rec {
91
91
-
themeName = "showcase";
92
92
-
version = "0.6.0";
93
93
-
src = {
94
94
-
rev = "v${version}";
95
95
-
sha256 = "1jfhw49yag8l1zr69l01y1p4p88waig3xv3b6c3mfxc8jrchp7pb";
96
96
-
};
97
97
-
meta = {
98
98
-
license = stdenv.lib.licenses.mit;
99
99
-
longDescription = ''
100
100
-
Theme that show most of styx functionalities with a basic design.
101
101
-
'';
102
102
-
};
103
103
-
};
104
104
-
}
-2
pkgs/top-level/all-packages.nix
···
16046
16046
16047
16047
styx = callPackage ../applications/misc/styx { };
16048
16048
16049
16049
-
styx-themes = callPackage ../applications/misc/styx/themes.nix { };
16050
16050
-
16051
16049
tecoc = callPackage ../applications/editors/tecoc { };
16052
16050
16053
16051
viber = callPackage ../applications/networking/instant-messengers/viber { };