nixpkgs/pkgs/by-name/sm/smb3-foundry/package.nix
Alexis Hildebrandt 755b915a15 treewide: Remove indefinite article from meta.description
nix run nixpkgs#silver-searcher -- -G '\.nix$' -0l 'description.*"[Aa]n?' pkgs \
  | xargs -0 nix run nixpkgs#gnused -- -i '' -Ee 's/(description.*")[Aa]n? (.)/\1\U\2/'
2024-06-09 23:07:45 +02:00

49 lines
1.2 KiB
Nix

{ lib
, stdenv
, fetchFromGitHub
, python3
}:
let
python = (python3.withPackages (ps: with ps; [
pyside6
py65
qdarkstyle
]));
in
stdenv.mkDerivation (finalAttrs: {
pname = "smb3-foundry";
version = "1.3.1";
src = fetchFromGitHub {
owner = "mchlnix";
repo = "SMB3-Foundry";
rev = "refs/tags/${finalAttrs.version}";
hash = "sha256-8cf7VhvC372Cqi94n2FSHcoCGblpZoZvBXcXq5jU6CY=";
};
buildInputs = [ python ];
installPhase = ''
runHook preInstall
mkdir -p $out/share/smb3-foundry $out/bin
cp -r smb3parse foundry scribe data doc VERSION smb3-foundry.py smb3-scribe.py $out/share/smb3-foundry
ln -s $out/share/smb3-foundry/smb3-foundry.py $out/bin/smb3-foundry
ln -s $out/share/smb3-foundry/smb3-scribe.py $out/bin/smb3-scribe
runHook postInstall
'';
meta = {
changelog = "https://github.com/mchlnix/SMB3-Foundry/releases/tag/${finalAttrs.version}";
description = "Modern Super Mario Bros. 3 Level Editor";
homepage = "https://github.com/mchlnix/SMB3-Foundry";
license = lib.licenses.gpl3Only;
mainProgram = "smb3-foundry";
maintainers = with lib.maintainers; [ tomasajt ];
platforms = lib.platforms.unix;
};
})