2016-12-07 06:01:29 +00:00
|
|
|
{ fetchFromGitHub, stdenv }:
|
|
|
|
|
|
|
|
let
|
|
|
|
|
|
|
|
mkThemeDrv = args: stdenv.mkDerivation {
|
|
|
|
name = "styx-theme-${args.themeName}-${args.version}";
|
|
|
|
|
|
|
|
src = fetchFromGitHub ({
|
|
|
|
owner = "styx-static";
|
2017-01-18 07:28:40 +00:00
|
|
|
repo = "styx-theme-${args.themeName}";
|
2016-12-07 06:01:29 +00:00
|
|
|
} // args.src);
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mkdir $out
|
|
|
|
cp -r * $out/
|
|
|
|
'';
|
|
|
|
|
|
|
|
preferLocalBuild = true;
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
maintainer = with maintainers; [ ericsagnes ];
|
|
|
|
description = "${args.themeName} theme for styx";
|
|
|
|
platforms = platforms.all;
|
|
|
|
} // args.meta;
|
|
|
|
};
|
|
|
|
|
|
|
|
in
|
|
|
|
{
|
2017-02-26 08:35:55 +00:00
|
|
|
agency = mkThemeDrv rec {
|
2016-12-07 06:01:29 +00:00
|
|
|
themeName = "agency";
|
2017-02-26 08:35:55 +00:00
|
|
|
version = "0.6.0";
|
2016-12-07 06:01:29 +00:00
|
|
|
src = {
|
2017-02-26 08:35:55 +00:00
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "1i9bajzgmxd3ffvgic6wwnqijsgkfr2mfdijkgw9yf3bxcdq5cb6";
|
2016-12-07 06:01:29 +00:00
|
|
|
};
|
|
|
|
meta = {
|
|
|
|
license = stdenv.lib.licenses.asl20;
|
|
|
|
longDescription = ''
|
|
|
|
Agency Theme is a one page portfolio for companies and freelancers.
|
|
|
|
This theme features several content sections, a responsive portfolio
|
|
|
|
grid with hover effects, full page portfolio item modals, a timeline,
|
|
|
|
and a contact form.
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2017-02-26 08:35:55 +00:00
|
|
|
generic-templates = mkThemeDrv rec {
|
2017-01-18 07:28:40 +00:00
|
|
|
themeName = "generic-templates";
|
2017-02-26 08:35:55 +00:00
|
|
|
version = "0.6.0";
|
2017-01-18 07:28:40 +00:00
|
|
|
src = {
|
2017-02-26 08:35:55 +00:00
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "0wr2687pffczn0sns1xvqxr2gpf5v9j64zbj6q9f7km6bq0zpiiy";
|
2017-01-18 07:28:40 +00:00
|
|
|
};
|
|
|
|
meta = {
|
|
|
|
license = stdenv.lib.licenses.mit;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2017-02-26 08:35:55 +00:00
|
|
|
hyde = mkThemeDrv rec {
|
2016-12-07 06:01:29 +00:00
|
|
|
themeName = "hyde";
|
2017-02-26 08:35:55 +00:00
|
|
|
version = "0.6.0";
|
2016-12-07 06:01:29 +00:00
|
|
|
src = {
|
2017-02-26 08:35:55 +00:00
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "0yca76p297ymxd049fkcpw8bca5b9yvv36707z31jbijriy50zxb";
|
2016-12-07 06:01:29 +00:00
|
|
|
};
|
|
|
|
meta = {
|
|
|
|
license = stdenv.lib.licenses.mit;
|
|
|
|
longDescription = ''
|
2017-01-18 07:28:40 +00:00
|
|
|
Port of the Jekyll Hyde theme to styx; Hyde is a brazen two-column
|
|
|
|
Styx theme that pairs a prominent sidebar with uncomplicated content.
|
2016-12-07 06:01:29 +00:00
|
|
|
'';
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2017-02-26 08:35:55 +00:00
|
|
|
orbit = mkThemeDrv rec {
|
2016-12-07 06:01:29 +00:00
|
|
|
themeName = "orbit";
|
2017-02-26 08:35:55 +00:00
|
|
|
version = "0.6.0";
|
2016-12-07 06:01:29 +00:00
|
|
|
src = {
|
2017-02-26 08:35:55 +00:00
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "0qdx1r7dcycr5hzl9ix70pl4xf0426ghpi1lgh61zdpdhcch0xfi";
|
2016-12-07 06:01:29 +00:00
|
|
|
};
|
|
|
|
meta = {
|
|
|
|
license = stdenv.lib.licenses.cc-by-30;
|
|
|
|
longDescription = ''
|
|
|
|
Orbit is a free resume/CV template designed for developers.
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2017-02-26 08:35:55 +00:00
|
|
|
showcase = mkThemeDrv rec {
|
2016-12-07 06:01:29 +00:00
|
|
|
themeName = "showcase";
|
2017-02-26 08:35:55 +00:00
|
|
|
version = "0.6.0";
|
2016-12-07 06:01:29 +00:00
|
|
|
src = {
|
2017-02-26 08:35:55 +00:00
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "1jfhw49yag8l1zr69l01y1p4p88waig3xv3b6c3mfxc8jrchp7pb";
|
2016-12-07 06:01:29 +00:00
|
|
|
};
|
|
|
|
meta = {
|
|
|
|
license = stdenv.lib.licenses.mit;
|
|
|
|
longDescription = ''
|
|
|
|
Theme that show most of styx functionalities with a basic design.
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|