ophis: refactor

- get rid of python3Packages.callPackage
- get rid of rec
- fix version format
This commit is contained in:
Anderson Torres
2024-11-30 16:30:57 -03:00
parent 95dbdbbd9a
commit 0396be8262
2 changed files with 40 additions and 28 deletions
+39 -27
View File
@@ -1,30 +1,42 @@
{ lib, buildPythonApplication, fetchFromGitHub }:
{
lib,
fetchFromGitHub,
python3Packages,
unstableGitUpdater,
}:
buildPythonApplication rec {
pname = "ophis";
version = "unstable-2019-04-13";
let
self = python3Packages.buildPythonApplication {
pname = "ophis";
version = "0-unstable-2019-04-13";
src = fetchFromGitHub {
owner = "michaelcmartin";
repo = "Ophis";
rev = "99f074da278d4ec80689c0e22e20c5552ea12512";
sha256 = "2x8vwLTSngqQqmVrVh/mM4peATgaRqOSwrfm5XCkg/g=";
src = fetchFromGitHub {
owner = "michaelcmartin";
repo = "Ophis";
rev = "99f074da278d4ec80689c0e22e20c5552ea12512";
hash = "sha256-2x8vwLTSngqQqmVrVh/mM4peATgaRqOSwrfm5XCkg/g=";
};
sourceRoot = "${self.src.name}/src";
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; [ AndersonTorres ];
};
};
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 ];
};
}
in
self
+1 -1
View File
@@ -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;