diff options
author | pacien | 2022-10-27 17:41:10 +0200 |
---|---|---|
committer | GitHub | 2022-10-27 17:41:10 +0200 |
commit | ba674290bbfa49dc990218c306971e528db102b2 (patch) | |
tree | a5c881b0c230ccf66be01ec591bc44181878e4d8 /flake.nix | |
parent | 8ff134feaf0503bd8d93e0295c9db53ef3c49821 (diff) | |
parent | 300671d0dd52dc12a144010717581f0a6ba5b124 (diff) | |
download | ldgallery-ba674290bbfa49dc990218c306971e528db102b2.tar.gz |
Merge pull request #342 from ldgallery/p_flake_example
flake: add example as a package
Diffstat (limited to 'flake.nix')
-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 | ||