aboutsummaryrefslogtreecommitdiff
path: root/flake.nix
diff options
context:
space:
mode:
authorpacien2022-10-27 17:41:10 +0200
committerGitHub2022-10-27 17:41:10 +0200
commitba674290bbfa49dc990218c306971e528db102b2 (patch)
treea5c881b0c230ccf66be01ec591bc44181878e4d8 /flake.nix
parent8ff134feaf0503bd8d93e0295c9db53ef3c49821 (diff)
parent300671d0dd52dc12a144010717581f0a6ba5b124 (diff)
downloadldgallery-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.nix13
1 files changed, 13 insertions, 0 deletions
diff --git a/flake.nix b/flake.nix
index 99221c7..688601c 100644
--- a/flake.nix
+++ b/flake.nix
@@ -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