about summary refs log tree commit diff
path: root/pkgs/tools/graphics
diff options
context:
space:
mode:
authorAnderson Torres <torres.anderson.85@protonmail.com>2023-01-02 14:53:18 -0300
committerGitHub <noreply@github.com>2023-01-02 14:53:18 -0300
commit131aff3f5e8ac211eac5094c0c78963121dd8cdd (patch)
treedbce89c2154ca9e4ce30811feb7582852f410452 /pkgs/tools/graphics
parenteb44dbc1e63662c82b0bd35af7a3fdae2e6b4d8e (diff)
parent10b497b1ea1d121f9ec8c10c2a13c71d0fe93715 (diff)
Merge pull request #208462 from tomodachi94/sanjuuni
sanjuuni: init at 0.2
Diffstat (limited to 'pkgs/tools/graphics')
-rw-r--r--pkgs/tools/graphics/sanjuuni/default.nix44
1 files changed, 44 insertions, 0 deletions
diff --git a/pkgs/tools/graphics/sanjuuni/default.nix b/pkgs/tools/graphics/sanjuuni/default.nix
new file mode 100644
index 0000000000000..bccb336b702ce
--- /dev/null
+++ b/pkgs/tools/graphics/sanjuuni/default.nix
@@ -0,0 +1,44 @@
+{ lib
+, stdenv
+, fetchFromGitHub
+, pkg-config
+, ffmpeg
+, poco
+}:
+
+stdenv.mkDerivation rec {
+  pname = "sanjuuni";
+  version = "0.2";
+
+  src = fetchFromGitHub {
+    owner = "MCJack123";
+    repo = "sanjuuni";
+    rev = version;
+    sha256 = "sha256-WWDbPwiU4YD8XCMuqLWEGinpHkq2FNJZsz3GyVqjDHQ=";
+  };
+
+  nativeBuildInputs = [
+    pkg-config
+  ];
+
+  buildInputs = [
+    ffmpeg
+    poco
+  ];
+
+  installPhase = ''
+    runHook preInstall
+
+    install -Dm755 sanjuuni $out/bin/sanjuuni
+
+    runHook postInstall
+  '';
+
+  meta = with lib; {
+    homepage = "https://github.com/MCJack123/sanjuuni";
+    description = "A command-line tool that converts images and videos into a format that can be displayed in ComputerCraft";
+    maintainers = [ maintainers.tomodachi94 ];
+    license = licenses.gpl2Plus;
+    broken = stdenv.isDarwin;
+  };
+}