Commit 0396be82 authored by Anderson Torres's avatar Anderson Torres
Browse files

ophis: refactor

- get rid of python3Packages.callPackage
- get rid of rec
- fix version format
parent 95dbdbbd
Loading
Loading
Loading
Loading
+37 −25
Original line number Diff line number Diff line
{ lib, buildPythonApplication, fetchFromGitHub }:
{
  lib,
  fetchFromGitHub,
  python3Packages,
  unstableGitUpdater,
}:

buildPythonApplication rec {
let
  self = python3Packages.buildPythonApplication {
    pname = "ophis";
  version = "unstable-2019-04-13";
    version = "0-unstable-2019-04-13";

    src = fetchFromGitHub {
      owner = "michaelcmartin";
      repo = "Ophis";
      rev = "99f074da278d4ec80689c0e22e20c5552ea12512";
    sha256 = "2x8vwLTSngqQqmVrVh/mM4peATgaRqOSwrfm5XCkg/g=";
      hash = "sha256-2x8vwLTSngqQqmVrVh/mM4peATgaRqOSwrfm5XCkg/g=";
    };

  sourceRoot = "${src.name}/src";
    sourceRoot = "${self.src.name}/src";

  meta = with lib; {
    passthru = {
      updateScript = unstableGitUpdater { };
    };

    meta = {
      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
@@ -24,7 +33,10 @@ buildPythonApplication rec {
        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 ];
      license = lib.licenses.mit;
      mainProgram = "ophis";
      maintainers = with lib.maintainers; [ AndersonTorres ];
    };
  };
}
in
self
+1 −1
Original line number Diff line number Diff line
@@ -4647,7 +4647,7 @@ with pkgs;
  ophcrack-cli = ophcrack.override { enableGui = false; };
  ophis = python3Packages.callPackage ../development/compilers/ophis { };
  ophis = callPackage ../development/compilers/ophis { };
  open-interpreter = with python3Packages; toPythonApplication open-interpreter;