mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-12 08:43:06 +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.
30 lines
906 B
Nix
30 lines
906 B
Nix
{ stdenv, lib, fetchFromGitHub, pkg-config, alsa-lib, glib, json-glib }:
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
pname = "aseq2json";
|
|
version = "unstable-2018-04-28";
|
|
src = fetchFromGitHub {
|
|
owner = "google";
|
|
repo = "midi-dump-tools";
|
|
rev = "8572e6313a0d7ec95492dcab04a46c5dd30ef33a";
|
|
sha256 = "LQ9LLVumi3GN6c9tuMSOd1Bs2pgrwrLLQbs5XF+NZeA=";
|
|
};
|
|
sourceRoot = "${finalAttrs.src.name}/aseq2json";
|
|
|
|
nativeBuildInputs = [ pkg-config ];
|
|
buildInputs = [ alsa-lib glib json-glib ];
|
|
|
|
installPhase = ''
|
|
install -D --target-directory "$out/bin" aseq2json
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "Listens for MIDI events on the Alsa sequencer and outputs as JSON to stdout";
|
|
mainProgram = "aseq2json";
|
|
homepage = "https://github.com/google/midi-dump-tools";
|
|
license = licenses.asl20;
|
|
maintainers = [ maintainers.queezle ];
|
|
platforms = platforms.linux;
|
|
};
|
|
})
|