yapesdl: rewrite
- split outputs - strictDeps - meta.changelog
This commit is contained in:
@@ -1,8 +1,9 @@
|
||||
{ lib
|
||||
, stdenv
|
||||
, fetchFromGitHub
|
||||
, pkg-config
|
||||
, SDL2
|
||||
{
|
||||
lib,
|
||||
SDL2,
|
||||
fetchFromGitHub,
|
||||
pkg-config,
|
||||
stdenv,
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation (finalAttrs: {
|
||||
@@ -17,6 +18,7 @@ stdenv.mkDerivation (finalAttrs: {
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
SDL2
|
||||
pkg-config
|
||||
];
|
||||
|
||||
@@ -26,20 +28,25 @@ stdenv.mkDerivation (finalAttrs: {
|
||||
|
||||
makeFlags = [ "CC=${stdenv.cc.targetPrefix}c++" ];
|
||||
|
||||
outputs = [ "out" "doc" ];
|
||||
|
||||
strictDeps = true;
|
||||
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
install -Dm755 yapesdl -t $out/bin/
|
||||
install -Dm755 README.SDL -t $out/share/doc/yapesdl/
|
||||
install -Dm755 yapesdl -t ''${!outputBin}/bin/
|
||||
install -Dm755 README.SDL -t ''${!outputDoc}/share/doc/yapesdl/
|
||||
runHook postInstall
|
||||
'';
|
||||
|
||||
meta = {
|
||||
homepage = "http://yape.plus4.net/";
|
||||
description = "Multiplatform Commodore 64 and 264 family emulator";
|
||||
changelog = "https://github.com/calmopyrin/yapesdl/releases/tag/${finalAttrs.src.rev}";
|
||||
license = lib.licenses.gpl2Plus;
|
||||
mainProgram = "yapesdl";
|
||||
maintainers = with lib.maintainers; [ AndersonTorres ];
|
||||
platforms = lib.platforms.unix;
|
||||
broken = stdenv.isDarwin;
|
||||
mainProgram = "yapesdl";
|
||||
};
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user