-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
939ff2d
commit e365598
Showing
20 changed files
with
460 additions
and
313 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,28 @@ | ||
{ lib | ||
, stdenv | ||
, resumed | ||
, self, super, root | ||
, src | ||
, ... | ||
}: | ||
let | ||
{ | ||
lib, | ||
stdenv, | ||
resumed, | ||
self, | ||
super, | ||
root, | ||
src, | ||
... | ||
}: let | ||
jsonresume-theme-all = root.themes.all; | ||
data = import src; | ||
inherit (data.meta) theme version; | ||
in | ||
stdenv.mkDerivation { | ||
inherit (data.meta) version; | ||
pname = "jsonresume-html"; | ||
src = ../../../src; | ||
in | ||
stdenv.mkDerivation { | ||
inherit (data.meta) version; | ||
pname = "jsonresume-html"; | ||
src = ../../../src; | ||
|
||
# propagatedBuildInputs = [super.json]; | ||
buildInputs = [jsonresume-theme-all resumed]; | ||
buildPhase = '' | ||
mkdir -p $out | ||
${lib.getExe resumed} render ${super.json} \ | ||
--theme ${jsonresume-theme-all}/lib/node_modules/jsonresume-theme-${theme}/index.js \ | ||
--output $out/index.html | ||
''; | ||
} | ||
# propagatedBuildInputs = [super.json]; | ||
buildInputs = [jsonresume-theme-all resumed]; | ||
buildPhase = '' | ||
mkdir -p $out | ||
${lib.getExe resumed} render ${super.json} \ | ||
--theme ${jsonresume-theme-all}/lib/node_modules/jsonresume-theme-${theme}/index.js \ | ||
--output $out/index.html | ||
''; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,16 @@ | ||
{ lib | ||
, stdenv | ||
, writeText | ||
, src ? ./src/jsonresume.nix | ||
, self, super, root | ||
, ... | ||
}: | ||
let | ||
{ | ||
lib, | ||
stdenv, | ||
writeText, | ||
src ? ./src/jsonresume.nix, | ||
self, | ||
super, | ||
root, | ||
... | ||
}: let | ||
basename = builtins.head (lib.splitString "." (builtins.baseNameOf src)); | ||
in | ||
writeText "${basename}.json" (lib.generators.toJSON {} ((import src) // { | ||
"$schema" = "https://raw.githubusercontent.com/jsonresume/resume-schema/v1.0.0/schema.json"; | ||
})) | ||
writeText "${basename}.json" (lib.generators.toJSON {} ((import src) | ||
// { | ||
"$schema" = "https://raw.githubusercontent.com/jsonresume/resume-schema/v1.0.0/schema.json"; | ||
})) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,13 @@ | ||
{ lib | ||
, stdenv | ||
, writeText | ||
, src ? ./src/jsonresume.nix | ||
, self, super, root | ||
, ... | ||
}: | ||
let | ||
{ | ||
lib, | ||
stdenv, | ||
writeText, | ||
src ? ./src/jsonresume.nix, | ||
self, | ||
super, | ||
root, | ||
... | ||
}: let | ||
basename = builtins.head (lib.splitString "." (builtins.baseNameOf src)); | ||
in | ||
writeText "${basename}.nix" (lib.generators.toPretty {} (import src)) | ||
writeText "${basename}.nix" (lib.generators.toPretty {} (import src)) |
Oops, something went wrong.