diff options
-rw-r--r-- | flake.nix | 13 |
1 files changed, 13 insertions, 0 deletions
@@ -117,6 +117,19 @@ | |||
117 | ]; | 117 | ]; |
118 | }; | 118 | }; |
119 | 119 | ||
120 | example = pkgs.stdenv.mkDerivation { | ||
121 | pname = "ldgallery-example"; | ||
122 | version = ldgalleryVersion; | ||
123 | src = ./example; | ||
124 | nativeBuildInputs = [ ldgallery ]; | ||
125 | buildPhase = '' | ||
126 | # Need UTF-8: https://github.com/ldgallery/ldgallery/issues/341 | ||
127 | export LC_ALL=C.UTF-8 | ||
128 | ldgallery --input-dir src --output-dir $out --with-viewer | ||
129 | ''; | ||
130 | installPhase = ":"; | ||
131 | }; | ||
132 | |||
120 | default = ldgallery; | 133 | default = ldgallery; |
121 | }; | 134 | }; |
122 | 135 | ||