Skip to content

Commit

Permalink
supergee: init at 0-unstable-2023-11-21 (NixOS#367050)
Browse files Browse the repository at this point in the history
  • Loading branch information
GaetanLepage authored Dec 29, 2024
2 parents d1961b5 + a8fe473 commit 0666419
Showing 1 changed file with 84 additions and 0 deletions.
84 changes: 84 additions & 0 deletions pkgs/by-name/su/supergee/package.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,84 @@
{
lib,
stdenv,
fetchFromGitHub,
meson,
ninja,
vala,
gtk3,
beets,
libgee,
glib,
libxml2,
unstableGitUpdater,
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;

passthru = {
updateScript = unstableGitUpdater { hardcodeZeroVersion = true; };
};

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

0 comments on commit 0666419

Please sign in to comment.