From 861c59269ad7f33da7815e909c2d678b3b4b1343 Mon Sep 17 00:00:00 2001 From: Anomalocaridid <29845794+Anomalocaridid@users.noreply.github.com> Date: Tue, 31 Oct 2023 22:29:59 -0400 Subject: [PATCH] unimatrix: init at unstable-2023-04-25 --- pkgs/by-name/un/unimatrix/package.nix | 36 +++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 pkgs/by-name/un/unimatrix/package.nix diff --git a/pkgs/by-name/un/unimatrix/package.nix b/pkgs/by-name/un/unimatrix/package.nix new file mode 100644 index 0000000000000..0b57d915cefb7 --- /dev/null +++ b/pkgs/by-name/un/unimatrix/package.nix @@ -0,0 +1,36 @@ +{ lib +, python3Packages +, fetchFromGitHub +}: + +python3Packages.buildPythonApplication rec { + pname = "unimatrix"; + version = "unstable-2023-04-25"; + pyproject = false; + + src = fetchFromGitHub { + owner = "will8211"; + repo = pname; + rev = "65793c237553bf657af2f2248d2a2dc84169f5c4"; + hash = "sha256-fiaVEc0rtZarUQlUwe1V817qWRx4LnUyRD/j2vWX5NM="; + }; + + installPhase = '' + runHook preInstall + + install -Dm755 ./unimatrix.py $out/bin/unimatrix + + runHook postInstall + ''; + + dontConfigure = true; + dontBuild = true; + + meta = with lib; { + description = ''Python script to simulate the display from "The Matrix" in terminal''; + homepage = "https://github.com/will8211/unimatrix"; + license = licenses.gpl3Only; + maintainers = with maintainers; [ anomalocaris ]; + mainProgram = "unimatrix"; + }; +}