mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-02 07:31:26 +00:00
gmtk: init 1.0.9
This commit is contained in:
parent
866c511a0a
commit
ef3a5865d1
32
pkgs/development/libraries/gmtk/default.nix
Normal file
32
pkgs/development/libraries/gmtk/default.nix
Normal file
@ -0,0 +1,32 @@
|
||||
{stdenv, substituteAll, fetchFromGitHub, libtool, pkgconfig, intltool, glib, gtk3
|
||||
, libpulseaudio, mplayer, gnome_mplayer }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "gmtk-${version}";
|
||||
version = "1.0.9";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "kdekorte";
|
||||
repo = "gmtk";
|
||||
rev = "v${version}";
|
||||
sha256 = "1zb5m1y1gckal3140gvx31572a6xpccwfmdwa1w5lx2wdq1pwk1i";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ libtool pkgconfig intltool ];
|
||||
buildInputs = [ glib gtk3 libpulseaudio ];
|
||||
|
||||
patches = [
|
||||
(substituteAll {
|
||||
src = ./fix-paths.patch;
|
||||
mplayer = "${mplayer}/bin/mplayer";
|
||||
})
|
||||
];
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "Common functions for gnome-mplayer and gecko-mediaplayer";
|
||||
homepage = https://sites.google.com/site/kdekorte2/gnomemplayer;
|
||||
license = licenses.gpl2;
|
||||
maintainers = gnome_mplayer.meta.maintainers;
|
||||
platforms = platforms.linux;
|
||||
};
|
||||
}
|
20
pkgs/development/libraries/gmtk/fix-paths.patch
Normal file
20
pkgs/development/libraries/gmtk/fix-paths.patch
Normal file
@ -0,0 +1,20 @@
|
||||
--- a/src/gmtk_media_player.c
|
||||
+++ b/src/gmtk_media_player.c
|
||||
@@ -2449,7 +2449,7 @@
|
||||
player->minimum_mplayer = detect_mplayer_features(player);
|
||||
|
||||
if (player->mplayer_binary == NULL || !g_file_test(player->mplayer_binary, G_FILE_TEST_EXISTS)) {
|
||||
- argv[argn++] = g_strdup_printf("mplayer");
|
||||
+ argv[argn++] = g_strdup_printf("@mplayer@");
|
||||
} else {
|
||||
argv[argn++] = g_strdup_printf("%s", player->mplayer_binary);
|
||||
}
|
||||
@@ -4135,7 +4135,7 @@
|
||||
return ret;
|
||||
|
||||
if (player->mplayer_binary == NULL || !g_file_test(player->mplayer_binary, G_FILE_TEST_EXISTS)) {
|
||||
- av[ac++] = g_strdup_printf("mplayer");
|
||||
+ av[ac++] = g_strdup_printf("@mplayer@");
|
||||
} else {
|
||||
av[ac++] = g_strdup_printf("%s", player->mplayer_binary);
|
||||
}
|
@ -15237,6 +15237,8 @@ with pkgs;
|
||||
inherit (darwin) IOKit;
|
||||
};
|
||||
|
||||
gmtk = callPackage ../development/libraries/gmtk { };
|
||||
|
||||
gmu = callPackage ../applications/audio/gmu { };
|
||||
|
||||
gnome_mplayer = callPackage ../applications/video/gnome-mplayer {
|
||||
|
Loading…
Reference in New Issue
Block a user