toxic: 0.15.1 -> 0.16.0
[NixPkgs.git] / pkgs / by-name / sm / smb3-foundry / package.nix
blob6c7bf56660922ffc29c9d0e8955c2f4fff71b281
2   lib,
3   stdenv,
4   fetchFromGitHub,
5   python3,
6 }:
8 let
9   python = (
10     python3.withPackages (
11       ps: with ps; [
12         pyside6
13         py65
14         qdarkstyle
15       ]
16     )
17   );
19 stdenv.mkDerivation (finalAttrs: {
20   pname = "smb3-foundry";
21   version = "1.3.1";
23   src = fetchFromGitHub {
24     owner = "mchlnix";
25     repo = "SMB3-Foundry";
26     rev = "refs/tags/${finalAttrs.version}";
27     hash = "sha256-8cf7VhvC372Cqi94n2FSHcoCGblpZoZvBXcXq5jU6CY=";
28   };
30   buildInputs = [ python ];
32   installPhase = ''
33     runHook preInstall
35     mkdir -p $out/share/smb3-foundry $out/bin
36     cp -r smb3parse foundry scribe data doc VERSION smb3-foundry.py smb3-scribe.py $out/share/smb3-foundry
38     ln -s $out/share/smb3-foundry/smb3-foundry.py $out/bin/smb3-foundry
39     ln -s $out/share/smb3-foundry/smb3-scribe.py $out/bin/smb3-scribe
41     runHook postInstall
42   '';
44   meta = {
45     changelog = "https://github.com/mchlnix/SMB3-Foundry/releases/tag/${finalAttrs.version}";
46     description = "Modern Super Mario Bros. 3 Level Editor";
47     homepage = "https://github.com/mchlnix/SMB3-Foundry";
48     license = lib.licenses.gpl3Only;
49     mainProgram = "smb3-foundry";
50     maintainers = with lib.maintainers; [ tomasajt ];
51     platforms = lib.platforms.unix;
52   };