mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-09 14:33:22 +00:00
571c71e6f7
We are migrating packages that meet below requirements: 1. using `callPackage` 2. called path is a directory 3. overriding set is empty (`{ }`) 4. not containing path expressions other than relative path (to makenixpkgs-vet happy) 5. not referenced by nix files outside of the directory, other than`pkgs/top-level/all-packages.nix` 6. not referencing nix files outside of the directory 7. not referencing `default.nix` (since it's changed to `package.nix`) 8. `outPath` doesn't change after migration The tool is here: https://github.com/Aleksanaa/by-name-migrate.
77 lines
1.5 KiB
Nix
77 lines
1.5 KiB
Nix
{ lib
|
|
, stdenv
|
|
, fetchFromGitHub
|
|
, autoreconfHook
|
|
, gtk-doc
|
|
, intltool
|
|
, itstool
|
|
, libtool
|
|
, pkg-config
|
|
, wrapGAppsHook3
|
|
, yelp-tools
|
|
, clutter-gtk
|
|
, gst_all_1
|
|
, glib
|
|
, gtk2
|
|
, libgsf
|
|
, libxml2
|
|
, fluidsynth
|
|
, orc
|
|
}:
|
|
|
|
stdenv.mkDerivation {
|
|
pname = "buzztrax";
|
|
version = "unstable-2022-01-26";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "Buzztrax";
|
|
repo = "buzztrax";
|
|
rev = "833287c6a06bddc922cd346d6f0fcec7a882aee5";
|
|
hash = "sha256-iI6m+zBWDDBjmeuU9Nm4aIbEKfaPe36APPktdjznQpU=";
|
|
};
|
|
|
|
postPatch = ''
|
|
touch AUTHORS
|
|
'';
|
|
|
|
nativeBuildInputs = [
|
|
autoreconfHook
|
|
gtk-doc
|
|
intltool
|
|
itstool
|
|
libtool
|
|
pkg-config
|
|
wrapGAppsHook3
|
|
yelp-tools
|
|
];
|
|
|
|
buildInputs = [
|
|
clutter-gtk
|
|
gst_all_1.gstreamer
|
|
gst_all_1.gst-plugins-base
|
|
gst_all_1.gst-plugins-good
|
|
glib
|
|
gtk2
|
|
libgsf
|
|
libxml2
|
|
# optional packages
|
|
fluidsynth
|
|
gst_all_1.gst-plugins-bad
|
|
gst_all_1.gst-plugins-ugly
|
|
orc
|
|
];
|
|
|
|
# 'g_memdup' is deprecated: Use 'g_memdup2' instead
|
|
env.NIX_CFLAGS_COMPILE = "-Wno-error=deprecated-declarations"
|
|
# Suppress incompatible function pointer error in clang due to libxml2 2.12 const changes
|
|
+ lib.optionalString stdenv.cc.isClang " -Wno-error=incompatible-function-pointer-types";
|
|
|
|
meta = with lib; {
|
|
description = "Buzztrax is a modular music composer for Linux";
|
|
homepage = "https://www.buzztrax.org/";
|
|
license = licenses.lgpl21Plus;
|
|
maintainers = [ maintainers.bendlas ];
|
|
platforms = platforms.unix;
|
|
};
|
|
}
|