famistudio-bin: rename from famistudio, move to pkgs/by-name

This commit is contained in:
OPNA2608 2023-07-13 18:18:54 +02:00 committed by OPNA2608
parent e332b3bba1
commit b665e3629d
2 changed files with 7 additions and 10 deletions

View file

@ -9,12 +9,12 @@
, openal , openal
}: }:
stdenv.mkDerivation rec { stdenv.mkDerivation (finalAttrs: {
pname = "famistudio"; pname = "famistudio-bin";
version = "4.1.3"; version = "4.1.3";
src = fetchzip { src = fetchzip {
url = "https://github.com/BleuBleu/FamiStudio/releases/download/${version}/FamiStudio${lib.strings.concatStrings (lib.splitVersion version)}-LinuxAMD64.zip"; url = "https://github.com/BleuBleu/FamiStudio/releases/download/${finalAttrs.version}/FamiStudio${lib.replaceStrings ["."] [""] finalAttrs.version}-LinuxAMD64.zip";
stripRoot = false; stripRoot = false;
hash = "sha256-eAdv0oObczbs8QLGYbxCrdFk/gN5DOCJ1dp/tg8JWIc="; hash = "sha256-eAdv0oObczbs8QLGYbxCrdFk/gN5DOCJ1dp/tg8JWIc=";
}; };
@ -42,7 +42,7 @@ stdenv.mkDerivation rec {
mkdir -p $out/{bin,lib/famistudio} mkdir -p $out/{bin,lib/famistudio}
mv * $out/lib/famistudio mv * $out/lib/famistudio
makeWrapper ${lib.getExe dotnet-runtime} $out/bin/famistudio \ makeWrapper ${lib.getExe dotnet-runtime} $out/bin/FamiStudio \
--add-flags $out/lib/famistudio/FamiStudio.dll \ --add-flags $out/lib/famistudio/FamiStudio.dll \
--prefix LD_LIBRARY_PATH : ${lib.makeLibraryPath [ libglvnd ]} \ --prefix LD_LIBRARY_PATH : ${lib.makeLibraryPath [ libglvnd ]} \
--prefix PATH : ${lib.makeBinPath [ ffmpeg ]} --prefix PATH : ${lib.makeBinPath [ ffmpeg ]}
@ -56,16 +56,15 @@ stdenv.mkDerivation rec {
meta = with lib; { meta = with lib; {
homepage = "https://famistudio.org/"; homepage = "https://famistudio.org/";
description = "NES Music Editor"; description = "NES Music Editor (binary distribution)";
longDescription = '' longDescription = ''
FamiStudio is very simple music editor for the Nintendo Entertainment System FamiStudio is very simple music editor for the Nintendo Entertainment System
or Famicom. It is targeted at both chiptune artists and NES homebrewers. or Famicom. It is targeted at both chiptune artists and NES homebrewers.
''; '';
license = licenses.mit; license = licenses.mit;
# Maybe possible to build from source but I'm not too familiar with C# packaging
sourceProvenance = with lib.sourceTypes; [ binaryNativeCode ]; sourceProvenance = with lib.sourceTypes; [ binaryNativeCode ];
maintainers = with maintainers; [ OPNA2608 ]; maintainers = with maintainers; [ OPNA2608 ];
platforms = [ "x86_64-linux" ]; platforms = [ "x86_64-linux" ];
mainProgram = "famistudio"; mainProgram = "FamiStudio";
}; };
} })

View file

@ -30984,8 +30984,6 @@ with pkgs;
faircamp = callPackage ../applications/misc/faircamp { }; faircamp = callPackage ../applications/misc/faircamp { };
famistudio = callPackage ../applications/audio/famistudio { };
fasttext = callPackage ../applications/science/machine-learning/fasttext { }; fasttext = callPackage ../applications/science/machine-learning/fasttext { };
fbmenugen = callPackage ../applications/misc/fbmenugen { }; fbmenugen = callPackage ../applications/misc/fbmenugen { };