nixpkgs/pkgs/by-name/fr/fretboard/package.nix

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

71 lines
1.5 KiB
Nix
Raw Normal View History

2024-01-17 14:40:49 +00:00
{ lib
, blueprint-compiler
, cargo
2024-03-13 14:59:21 +00:00
, darwin
2024-01-17 14:40:49 +00:00
, desktop-file-utils
, fetchFromGitHub
, glib
, gtk4
, libadwaita
, meson
, ninja
, pkg-config
, rustPlatform
, rustc
, stdenv
, wrapGAppsHook4
}:
2024-04-23 20:48:09 +01:00
stdenv.mkDerivation (finalAttrs: {
2024-01-17 14:40:49 +00:00
pname = "fretboard";
2024-07-08 16:56:21 +01:00
version = "7.1";
2024-01-17 14:40:49 +00:00
src = fetchFromGitHub {
owner = "bragefuglseth";
2024-03-13 13:36:41 +00:00
repo = "fretboard";
2024-04-23 20:48:09 +01:00
rev = "v${finalAttrs.version}";
2024-07-08 16:56:21 +01:00
hash = "sha256-ZBDsG59WLsTYdayqGMBAh9+gDtoaqlAuSdObcjAk6DA=";
2024-01-17 14:40:49 +00:00
};
cargoDeps = rustPlatform.fetchCargoTarball {
2024-04-23 20:48:09 +01:00
src = finalAttrs.src;
name = "${finalAttrs.pname}-${finalAttrs.version}";
2024-07-08 16:56:21 +01:00
hash = "sha256-W0gvSPVG0q1928uDky4Ad4VowuWcj6DyyWF2C2Y573c=";
2024-01-17 14:40:49 +00:00
};
nativeBuildInputs = [
blueprint-compiler
cargo
desktop-file-utils
meson
ninja
pkg-config
rustPlatform.cargoSetupHook
rustc
wrapGAppsHook4
];
buildInputs = [
glib
gtk4
libadwaita
2024-03-13 14:59:21 +00:00
] ++ lib.optionals stdenv.isDarwin [
darwin.apple_sdk.frameworks.Foundation
2024-01-17 14:40:49 +00:00
];
2024-03-13 14:59:21 +00:00
env.NIX_CFLAGS_COMPILE = toString (lib.optionals stdenv.cc.isClang [
"-Wno-error=incompatible-function-pointer-types"
]);
2024-01-17 14:40:49 +00:00
meta = with lib; {
2024-04-23 20:48:09 +01:00
changelog = "https://github.com/bragefuglseth/fretboard/releases/tag/v${finalAttrs.version}";
2024-01-17 14:40:49 +00:00
description = "Look up guitar chords";
2024-04-23 20:48:09 +01:00
homepage = "https://apps.gnome.org/Fretboard/";
2024-01-17 14:40:49 +00:00
license = licenses.gpl3Plus;
mainProgram = "fretboard";
2024-04-23 20:48:09 +01:00
maintainers = with maintainers; [ michaelgrahamevans ];
2024-03-13 13:36:41 +00:00
platforms = platforms.unix;
2024-07-08 16:56:21 +01:00
broken = stdenv.isDarwin;
2024-01-17 14:40:49 +00:00
};
2024-04-23 20:48:09 +01:00
})