Skip to content

Commit

Permalink
supergee: init at 0-unstable-2023-11-21
Browse files Browse the repository at this point in the history
  • Loading branch information
Bot-wxt1221 committed Dec 22, 2024
1 parent 55d3dc1 commit a4c003b
Showing 1 changed file with 79 additions and 0 deletions.
79 changes: 79 additions & 0 deletions pkgs/by-name/su/supergee/package.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,79 @@
{
stdenv,
lib,
fetchFromGitHub,
meson,
ninja,
vala,
gtk3,
beets,
libgee,
glib,
libxml2,
pkg-config,
cmake,
}:

stdenv.mkDerivation (finalAttrs: {
pname = "supergee";
version = "0-unstable-2023-11-21";

src = fetchFromGitHub {
owner = "DannyGB";
repo = "SuperGee";
rev = "c1232f6a8a9d4161644d728df793ffd3cb5cc4af";
hash = "sha256-lv7C4ku3MdiHxg1LfmnzT5Sx3DTtvP9g3XPOQlNBDkg=";
};

nativeBuildInputs = [
meson
ninja
libxml2.bin
vala
pkg-config
cmake
glib.bin
];

buildInputs = [
gtk3
libgee
glib
];

postPatch = ''
substituteInPlace BeetService.vala \
--replace-fail '"beet"' '"${lib.getExe beets}"'
'';

preConfigure = ''
pushd ..
find -exec chmod +w {} \;
mkdir build
cd build
mkdir SuperG@exe
glib-compile-resources --sourcedir ../resources --generate-source --target SuperG@exe/resources.c ../resources/superg.gresource.xml
popd
'';

installPhase = ''
runHook preInstall
install -Dm755 SuperG $out/bin/SuperG
runHook postInstall
'';

sourceRoot = "${finalAttrs.src.name}/src";

dontUseCmakeConfigure = true;

meta = {
homepage = "https://github.com/DannyGB/SuperGee";
mainProgram = "SuperG";
platforms = lib.platforms.unix;
maintainers = with lib.maintainers; [ bot-wxt1221 ];
license = lib.licenses.gpl3Only;
description = "Vala based UI for beets";
};
})

0 comments on commit a4c003b

Please sign in to comment.