Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

75 lines
1.5 KiB
Nix
Raw Permalink Normal View History

2024-01-17 16:40:49 +02:00
{
lib,
blueprint-compiler,
cargo,
desktop-file-utils,
fetchFromGitHub,
glib,
gtk4,
libadwaita,
meson,
ninja,
nix-update-script,
2024-01-17 16:40:49 +02:00
pkg-config,
rustPlatform,
rustc,
stdenv,
wrapGAppsHook4,
}:
2024-04-23 21:48:09 +02:00
stdenv.mkDerivation (finalAttrs: {
2024-01-17 16:40:49 +02:00
pname = "fretboard";
version = "9.1";
2024-01-17 16:40:49 +02:00
src = fetchFromGitHub {
owner = "bragefuglseth";
2024-03-13 21:36:41 +08:00
repo = "fretboard";
2024-04-23 21:48:09 +02:00
rev = "v${finalAttrs.version}";
hash = "sha256-LTUZPOecX1OiLcfdiY/P2ffq91QcnFjW6knM9H/Z+Lc=";
2024-01-17 16:40:49 +02:00
};
cargoDeps = rustPlatform.fetchCargoVendor {
2025-06-02 07:01:06 +02:00
inherit (finalAttrs) pname version src;
hash = "sha256-Gl78z9FR/sB14uFDLKgnfN4B5yOi6A6MH64gDXcLiWA=";
2024-01-17 16:40:49 +02:00
};
nativeBuildInputs = [
blueprint-compiler
cargo
desktop-file-utils
meson
ninja
pkg-config
rustPlatform.cargoSetupHook
rustc
wrapGAppsHook4
];
buildInputs = [
glib
gtk4
libadwaita
];
2024-01-17 16:40:49 +02:00
2024-03-13 15:59:21 +01:00
env.NIX_CFLAGS_COMPILE = toString (
lib.optionals stdenv.cc.isClang [
"-Wno-error=incompatible-function-pointer-types"
]
);
passthru = {
updateScript = nix-update-script { };
};
meta = {
2024-04-23 21:48:09 +02:00
changelog = "https://github.com/bragefuglseth/fretboard/releases/tag/v${finalAttrs.version}";
2024-01-17 16:40:49 +02:00
description = "Look up guitar chords";
2024-04-23 21:48:09 +02:00
homepage = "https://apps.gnome.org/Fretboard/";
license = lib.licenses.gpl3Plus;
2024-01-17 16:40:49 +02:00
mainProgram = "fretboard";
teams = [ lib.teams.gnome-circle ];
platforms = lib.platforms.unix;
2024-07-08 17:56:21 +02:00
broken = stdenv.hostPlatform.isDarwin;
2024-01-17 16:40:49 +02:00
};
2024-04-23 21:48:09 +02:00
})