diff --git a/pkgs/by-name/op/ophis/package.nix b/pkgs/by-name/op/ophis/package.nix new file mode 100644 index 000000000000..a3f93a76da3f --- /dev/null +++ b/pkgs/by-name/op/ophis/package.nix @@ -0,0 +1,43 @@ +{ + lib, + fetchFromGitHub, + python3Packages, + unstableGitUpdater, +}: + +let + self = python3Packages.buildPythonApplication { + pname = "ophis"; + version = "2.2-unstable-2024-07-28"; + pyproject = true; + + src = fetchFromGitHub { + owner = "michaelcmartin"; + repo = "Ophis"; + rev = "6a5e5a586832e828b598e8162457e673a6c38275"; + hash = "sha256-cxgSgAypS02AO9vjYjNWDY/cx7kxLt1Bdw8HGgGGBhU="; + }; + + build-system = [ python3Packages.setuptools ]; + + passthru = { + updateScript = unstableGitUpdater { }; + }; + + meta = { + homepage = "http://michaelcmartin.github.io/Ophis/"; + description = "Cross-assembler for the 6502 series of microprocessors"; + longDescription = '' + Ophis is an assembler for the 6502 microprocessor - the famous chip used + in the vast majority of the classic 8-bit computers and consoles. Its + primary design goals are code readability and output flexibility - Ophis + has successfully been used to create programs for the Nintendo + Entertainment System, the Atari 2600, and the Commodore 64. + ''; + license = lib.licenses.mit; + mainProgram = "ophis"; + maintainers = with lib.maintainers; [ ]; + }; + }; +in +self diff --git a/pkgs/development/compilers/ophis/default.nix b/pkgs/development/compilers/ophis/default.nix deleted file mode 100644 index e1945c9b2802..000000000000 --- a/pkgs/development/compilers/ophis/default.nix +++ /dev/null @@ -1,30 +0,0 @@ -{ lib, buildPythonApplication, fetchFromGitHub }: - -buildPythonApplication rec { - pname = "ophis"; - version = "unstable-2019-04-13"; - - src = fetchFromGitHub { - owner = "michaelcmartin"; - repo = "Ophis"; - rev = "99f074da278d4ec80689c0e22e20c5552ea12512"; - sha256 = "2x8vwLTSngqQqmVrVh/mM4peATgaRqOSwrfm5XCkg/g="; - }; - - sourceRoot = "${src.name}/src"; - - meta = with lib; { - homepage = "http://michaelcmartin.github.io/Ophis/"; - description = "Cross-assembler for the 6502 series of microprocessors"; - mainProgram = "ophis"; - longDescription = '' - Ophis is an assembler for the 6502 microprocessor - the famous chip used - in the vast majority of the classic 8-bit computers and consoles. Its - primary design goals are code readability and output flexibility - Ophis - has successfully been used to create programs for the Nintendo - Entertainment System, the Atari 2600, and the Commodore 64. - ''; - license = licenses.mit; - maintainers = with maintainers; [ AndersonTorres ]; - }; -} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 5700d75de7b7..74a5c473a4ba 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -4645,8 +4645,6 @@ with pkgs; ophcrack-cli = ophcrack.override { enableGui = false; }; - ophis = python3Packages.callPackage ../development/compilers/ophis { }; - open-interpreter = with python3Packages; toPythonApplication open-interpreter; openhantek6022 = libsForQt5.callPackage ../applications/science/electronics/openhantek6022 { };