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
}:
stdenv.mkDerivation rec {
pname = "famistudio";
stdenv.mkDerivation (finalAttrs: {
pname = "famistudio-bin";
version = "4.1.3";
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;
hash = "sha256-eAdv0oObczbs8QLGYbxCrdFk/gN5DOCJ1dp/tg8JWIc=";
};
@ -42,7 +42,7 @@ stdenv.mkDerivation rec {
mkdir -p $out/{bin,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 \
--prefix LD_LIBRARY_PATH : ${lib.makeLibraryPath [ libglvnd ]} \
--prefix PATH : ${lib.makeBinPath [ ffmpeg ]}
@ -56,16 +56,15 @@ stdenv.mkDerivation rec {
meta = with lib; {
homepage = "https://famistudio.org/";
description = "NES Music Editor";
description = "NES Music Editor (binary distribution)";
longDescription = ''
FamiStudio is very simple music editor for the Nintendo Entertainment System
or Famicom. It is targeted at both chiptune artists and NES homebrewers.
'';
license = licenses.mit;
# Maybe possible to build from source but I'm not too familiar with C# packaging
sourceProvenance = with lib.sourceTypes; [ binaryNativeCode ];
maintainers = with maintainers; [ OPNA2608 ];
platforms = [ "x86_64-linux" ];
mainProgram = "famistudio";
mainProgram = "FamiStudio";
};
}
})

View File

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