about summary refs log tree commit diff
path: root/flake.nix
diff options
context:
space:
mode:
authorPatryk Niedźwiedziński <pniedzwiedzinski19@gmail.com>2021-01-14 18:40:19 +0100
committerPatryk Niedźwiedziński <pniedzwiedzinski19@gmail.com>2021-01-14 18:49:49 +0100
commit01fc20da396c4e99b6e0f92105e76a7d40dfbc88 (patch)
tree8abe65b864e1140456b3e84d6ad299db23462442 /flake.nix
parent7dd03903b8716db807f5e7119d6efcbb117b341b (diff)
downloadgalier-01fc20da396c4e99b6e0f92105e76a7d40dfbc88.tar.gz
galier-01fc20da396c4e99b6e0f92105e76a7d40dfbc88.zip
Add flake.nix
Diffstat (limited to 'flake.nix')
-rw-r--r--flake.nix25
1 files changed, 25 insertions, 0 deletions
diff --git a/flake.nix b/flake.nix
new file mode 100644
index 0000000..aec547c
--- /dev/null
+++ b/flake.nix
@@ -0,0 +1,25 @@
+{
+  description = "Yet another photo gallery generator.";
+
+  outputs = { self, nixpkgs }: {
+
+    packages.x86_64-linux.gal =
+    with import nixpkgs { system = "x86_64-linux"; };
+    stdenv.mkDerivation {
+      pname = "gal";
+      version = "0.1";
+
+      src = self;
+
+      installPhase = ''
+        mkdir -p $out/bin
+        cp gal $out/bin
+
+        sed -i 's:convert:${imagemagick}/bin/convert:g' $out/bin/gal
+      '';
+    };
+
+    defaultPackage.x86_64-linux = self.packages.x86_64-linux.gal;
+
+  };
+}