styx: 0.6.0 -> 0.7.0

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