lol

Merge pull request #156571 from AndersonTorres/new-misc

mpc: install Bash shell completion (and more)

authored by

Anderson Torres and committed by
GitHub
48743a4f 1bcd8f6e

+54 -25
-4
maintainers/maintainer-list.nix
··· 513 513 githubId = 38869148; 514 514 name = "Alex Eyre"; 515 515 }; 516 - algorith = { 517 - email = "dries_van_daele@telenet.be"; 518 - name = "Dries Van Daele"; 519 - }; 520 516 alibabzo = { 521 517 email = "alistair.bill@gmail.com"; 522 518 github = "alibabzo";
+1 -1
nixos/modules/services/hardware/triggerhappy.nix
··· 70 70 type = types.listOf (types.submodule bindingCfg); 71 71 default = []; 72 72 example = lib.literalExpression '' 73 - [ { keys = ["PLAYPAUSE"]; cmd = "''${pkgs.mpc_cli}/bin/mpc -q toggle"; } ] 73 + [ { keys = ["PLAYPAUSE"]; cmd = "''${pkgs.mpc-cli}/bin/mpc -q toggle"; } ] 74 74 ''; 75 75 description = '' 76 76 Key bindings for <command>triggerhappy</command>.
+1 -1
nixos/tests/mpd.nix
··· 96 96 }; 97 97 98 98 testScript = '' 99 - mpc = "${pkgs.mpc_cli}/bin/mpc --wait" 99 + mpc = "${pkgs.mpc-cli}/bin/mpc --wait" 100 100 101 101 # Connects to the given server and attempts to play a tune. 102 102 def play_some_music(server):
+19 -6
pkgs/applications/audio/clerk/default.nix
··· 3 3 , fetchFromGitHub 4 4 , makeWrapper 5 5 , rofi 6 - , mpc_cli 6 + , mpc-cli 7 7 , perl 8 8 , util-linux 9 9 , python3Packages ··· 28 28 29 29 strictDeps = true; 30 30 31 - installPhase = '' 32 - DESTDIR=$out PREFIX=/ make install 33 - wrapProgram $out/bin/clerk \ 34 - --prefix PATH : "${lib.makeBinPath [ rofi mpc_cli perl util-linux libnotify ]}" 35 - ''; 31 + installPhase = 32 + let 33 + binPath = lib.makeBinPath [ 34 + libnotify 35 + mpc-cli 36 + perl 37 + rofi 38 + util-linux 39 + ]; 40 + in 41 + '' 42 + runHook preInstall 43 + 44 + DESTDIR=$out PREFIX=/ make install 45 + wrapProgram $out/bin/clerk --prefix PATH : "${binPath}" 46 + 47 + runHook postInstall 48 + ''; 36 49 37 50 meta = with lib; { 38 51 description = "An MPD client built on top of rofi";
+31 -12
pkgs/applications/audio/mpc/default.nix
··· 1 1 { lib 2 2 , stdenv 3 3 , fetchFromGitHub 4 + , installShellFiles 5 + , libiconv 6 + , libmpdclient 4 7 , meson 5 8 , ninja 6 9 , pkg-config 7 - , libmpdclient 8 10 , sphinx 9 - , libiconv 10 11 }: 11 12 12 13 stdenv.mkDerivation rec { ··· 14 15 version = "0.34"; 15 16 16 17 src = fetchFromGitHub { 17 - owner = "MusicPlayerDaemon"; 18 - repo = "mpc"; 19 - rev = "v${version}"; 20 - sha256 = "sha256-2FjYBfak0IjibuU+CNQ0y9Ei8hTZhynS/BK2DNerhVw="; 18 + owner = "MusicPlayerDaemon"; 19 + repo = pname; 20 + rev = "v${version}"; 21 + hash = "sha256-2FjYBfak0IjibuU+CNQ0y9Ei8hTZhynS/BK2DNerhVw="; 21 22 }; 22 23 23 - buildInputs = [ libmpdclient ] ++ lib.optionals stdenv.isDarwin [ libiconv ]; 24 + buildInputs = [ 25 + libmpdclient 26 + ] 27 + ++ lib.optionals stdenv.isDarwin [ libiconv ]; 28 + 29 + nativeBuildInputs = [ 30 + installShellFiles 31 + meson 32 + ninja 33 + pkg-config 34 + sphinx 35 + ]; 36 + 37 + postInstall = '' 38 + installShellCompletion --cmd mpc --bash $out/share/doc/mpc/contrib/mpc-completion.bash 39 + ''; 24 40 25 - nativeBuildInputs = [ meson ninja pkg-config sphinx ]; 41 + postFixup = '' 42 + rm $out/share/doc/mpc/contrib/mpc-completion.bash 43 + ''; 26 44 27 45 meta = with lib; { 28 - description = "A minimalist command line interface to MPD"; 29 46 homepage = "https://www.musicpd.org/clients/mpc/"; 30 - license = licenses.gpl2; 31 - maintainers = with maintainers; [ algorith ]; 32 - platforms = with platforms; linux ++ darwin; 47 + description = "A minimalist command line interface to MPD"; 48 + changelog = "https://raw.githubusercontent.com/MusicPlayerDaemon/mpc/v${version}/NEWS"; 49 + license = licenses.gpl2Plus; 50 + maintainers = with maintainers; [ AndersonTorres ]; 51 + platforms = with platforms; unix; 33 52 }; 34 53 }
+1
pkgs/top-level/aliases.nix
··· 631 631 module_init_tools = kmod; # added 2016-04-22 632 632 mozart = mozart2-binary; # added 2019-09-23 633 633 mozart-binary = mozart2-binary; # added 2019-09-23 634 + mpc_cli = mpc-cli; # moved from top-level 2022-01-24 634 635 mpd_clientlib = libmpdclient; # added 2021-02-11 635 636 mpich2 = mpich; # added 2018-08-06 636 637 msf = metasploit; # added 2018-04-25
+1 -1
pkgs/top-level/all-packages.nix
··· 27336 27336 27337 27337 mpg321 = callPackage ../applications/audio/mpg321 { }; 27338 27338 27339 - mpc_cli = callPackage ../applications/audio/mpc { 27339 + mpc-cli = callPackage ../applications/audio/mpc { 27340 27340 inherit (python3Packages) sphinx; 27341 27341 }; 27342 27342