From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id EH6fLM8QGmSANgEASxT56A (envelope-from ) for ; Tue, 21 Mar 2023 21:17:19 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id CCW7K88QGmRzCgEAG6o9tA (envelope-from ) for ; Tue, 21 Mar 2023 21:17:19 +0100 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 023AE362C2 for ; Tue, 21 Mar 2023 21:17:18 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1peiPo-0005e8-I3; Tue, 21 Mar 2023 16:17:04 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1peiPm-0005Wi-Vk for guix-patches@gnu.org; Tue, 21 Mar 2023 16:17:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1peiPm-0002hW-Lp for guix-patches@gnu.org; Tue, 21 Mar 2023 16:17:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1peiPm-0006u3-4a for guix-patches@gnu.org; Tue, 21 Mar 2023 16:17:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#62353] [PATCH] gnu: Add glava. Resent-From: Spencer Skylar Chan Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 21 Mar 2023 20:17:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 62353 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 62353@debbugs.gnu.org X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.167942976826442 (code B ref -1); Tue, 21 Mar 2023 20:17:01 +0000 Received: (at submit) by debbugs.gnu.org; 21 Mar 2023 20:16:08 +0000 Received: from localhost ([127.0.0.1]:60887 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1peiOq-0006sJ-JM for submit@debbugs.gnu.org; Tue, 21 Mar 2023 16:16:08 -0400 Received: from lists.gnu.org ([209.51.188.17]:45074) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pegGF-0001UC-VK for submit@debbugs.gnu.org; Tue, 21 Mar 2023 13:59:04 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pegGF-0001Rd-Me for guix-patches@gnu.org; Tue, 21 Mar 2023 13:59:03 -0400 Received: from esa4.umd.iphmx.com ([68.232.137.73]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pegGD-0000Kc-Rt for guix-patches@gnu.org; Tue, 21 Mar 2023 13:59:03 -0400 X-IronPort-AV: E=Sophos;i="5.98,279,1673931600"; d="scan'208,223";a="650483218" Received: from mail-qv1-f70.google.com ([209.85.219.70]) by ob1.umd.iphmx.com with ESMTP/TLS/ECDHE-RSA-AES128-GCM-SHA256; 21 Mar 2023 13:58:49 -0400 Received: by mail-qv1-f70.google.com with SMTP id e11-20020ad4536b000000b005a9292e8c2bso8050685qvv.1 for ; Tue, 21 Mar 2023 10:58:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=umd.edu; s=google; t=1679421528; h=content-transfer-encoding:subject:to:content-language:from :mime-version:date:message-id:from:to:cc:subject:date:message-id :reply-to; bh=umlR4ioj8rr7vYjgF+e4Os0JXfqTiOXiAneUsrNP8nk=; b=QInFuJgKBx5daZn1F86QpquO5mqrGxTLodKkIwK/lRS9T6KO/1jGn2X2htS5Ov4CTT VTxDR9eINwzrpeBEiQLQxwVCcMs6xBo+P7JqmZzP/2oY/C2JpopVP389CE0mS3Kn3Zgw kpl4I3Q9nWkIyZD9+DbDw2BYhx4bBqFMPiucNPML5xMOKmPG1mTR+bfm7oyLThwF6MGN kkFc9cM/KOZwaZAS487cZfL0jjvFy4jhmdEDLXU6jxECTq2+ME3+ffwUHWeg7QXDansn fKgOQj2iLn2RLx21VBGLJDGFUZbFpqwTDJmqUNp/ckrXljwjRo8FzbIoOhzEJIM1Sue/ 9bQA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679421528; h=content-transfer-encoding:subject:to:content-language:from :mime-version:date:message-id:x-gm-message-state:from:to:cc:subject :date:message-id:reply-to; bh=umlR4ioj8rr7vYjgF+e4Os0JXfqTiOXiAneUsrNP8nk=; b=w+CKTND0Zv6FYnpsbZfen3hX4jatBgTtJm9hk8LVu6Wl/y3timd7ERyU5z+Wm1fAuI mskEoKql0wz8tZ7u73WMwuqNHw6feoOaRaN+DmXB9Zi5l2g/dmXpmVTTDMdBw5jURqSe r74+5htUd/+Ybu0ToxvUuPxBt8l6j7X/tfwXGZRLlBml1+efNuUYHt9w3OdN9p1bKvH1 GCnIFSOuA6dkyUreyeUcxE8mb7eyIIqfP/lGFZYFWXMe6ZujfEBJVzaH2Axf/KQmMieN xERXZa6mJWgSa1rjcd//edELLmYcgDNI+vuXvoisjEpFrbMxjzxTP73SdwIn8zbLkp1u veuA== X-Gm-Message-State: AO0yUKWF6K/SZbMoGak5Y+qV8tYpJazcmRHpC/d5v3B091R/oFoa4ral iJR3ajxOASrE6K/BfxBlnKzcq0Qgbu1TQ69tpeUM73ehezsEgwT6Owv/uKRU4EZDG0ZWRuVWnot JZy2Rst6yDcmCLWEeVx9XSHjtQOP6VRnU8YeuRQ9IAJuIvH6ssnvKbsZfdUSeZrIc/dJmXdrhDO E9 X-Received: by 2002:a05:622a:651:b0:3bf:e005:3a85 with SMTP id a17-20020a05622a065100b003bfe0053a85mr1477033qtb.5.1679421528743; Tue, 21 Mar 2023 10:58:48 -0700 (PDT) X-Google-Smtp-Source: AK7set9tU9iphO9rIMF6Yu5+V04cGTFYObDoLNp7j002YenyXy22YCzC36z6IR/tyW8i2ijp2MdBLg== X-Received: by 2002:a05:622a:651:b0:3bf:e005:3a85 with SMTP id a17-20020a05622a065100b003bfe0053a85mr1476996qtb.5.1679421528374; Tue, 21 Mar 2023 10:58:48 -0700 (PDT) Received: from ?IPV6:2600:4040:45a2:7800:6539:6b26:e0f0:4523? ([2600:4040:45a2:7800:6539:6b26:e0f0:4523]) by smtp.gmail.com with ESMTPSA id bk12-20020a05620a1a0c00b0074357a6529asm9780326qkb.105.2023.03.21.10.58.47 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 21 Mar 2023 10:58:48 -0700 (PDT) Message-ID: Date: Tue, 21 Mar 2023 13:58:46 -0400 MIME-Version: 1.0 From: Spencer Skylar Chan Content-Language: en-US Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Received-SPF: pass client-ip=68.232.137.73; envelope-from=schan12@umd.edu; helo=esa4.umd.iphmx.com X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Tue, 21 Mar 2023 16:16:04 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: guix-patches-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN ARC-Seal: i=1; s=key1; d=yhetil.org; t=1679429839; a=rsa-sha256; cv=none; b=lLetfe9C/ua5LE/hcXZDNZHIRgGz2FoPh/A26YBkDjXHRdpTtIuw+IxwSdC6xJNY4ztzlZ TtwjIiFrjZehFH+lLh9FCHszTZVKP/DtdGgrnjJEQVnBbTw7HWTYmZMEcpH5d+cIQZDANM XNc+UKlZmQsi45tk4XmpAq32Odn76AzaNTMruMRbdG0Vs5od57DqBaTP6s0wuubi6XxJmZ qK9pqjpyZ2nSnruNNgAuyJgjY/9bIUoHn6jyjdsYXtjrsCuO9296uy6WtmHsERiKIHTJu9 w+z++FhqUKOZL+iJp+wh1Dv2Y44rsxMHKJAMxjvPH59hUBBoV6o1i2gPSmhcYA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=umd.edu header.s=google header.b=QInFuJgK; dmarc=fail reason="SPF not aligned (relaxed)" header.from=umd.edu (policy=none); spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1679429839; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=umlR4ioj8rr7vYjgF+e4Os0JXfqTiOXiAneUsrNP8nk=; b=gaKE2uWsFNwQbl+1ADa0COQCUwVh3cK5C0O28DfXyinFyX982IWVfvRPdg6QCSc9Zms7k0 rNVMizFuqbGnSS2Pb/q8CrAtl+AvO8xjjThk73aEPy3sGTpLbn96AFlem4lNjIwvmPzN0X dOUOilZ8BiFVXV0w/PDNaKhpKJgBn3thzBqHatYuiFIlmOofls5v0jGSZBUiAr3vbJXlIP TAuY/hPbxp6kXMy7NCgcdg3wmzCkA+yorSVtIgYRkSX8Z1wquJOLyFxTWRP1YoHw8F/sv2 EgqqA3awkpVI7R2SP0tw4rkO1iQphlZvuI9K3bQVjnf9B9VdxRtxLo0z2A+A3g== X-Migadu-Spam-Score: 5.35 X-Spam-Score: 5.35 X-Migadu-Queue-Id: 023AE362C2 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=umd.edu header.s=google header.b=QInFuJgK; dmarc=fail reason="SPF not aligned (relaxed)" header.from=umd.edu (policy=none); spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Scanner: scn1.migadu.com X-TUID: /BZ9ljVz9fuI From 17eb638d8ff5d5cb40c9bdf9f24544ef7f23088e Mon Sep 17 00:00:00 2001 From: Skylar Chan Date: Mon, 30 Jan 2023 13:39:53 -0500 Subject: [PATCH] gnu: Add glava. * gnu/packages/audio.scm (glava): New variable. --- gnu/packages/audio.scm | 75 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 75 insertions(+) diff --git a/gnu/packages/audio.scm b/gnu/packages/audio.scm index 6f3fa2a580..a0e73ed55a 100644 --- a/gnu/packages/audio.scm +++ b/gnu/packages/audio.scm @@ -5109,6 +5109,81 @@ (define-public cava using ALSA, MPD, PulseAudio, or a FIFO buffer as its input.") (license license:expat))) +(define-public glava + (package + (name "glava") + (version "1.6.3") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/jarcode-foss/glava") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "0kqkjxmpqkmgby05lsf6c6iwm45n33jk5qy6gi3zvjx4q4yzal1i")))) + (build-system gnu-build-system) + (arguments + (list #:tests? #f ;no tests. + #:make-flags + #~(list + (string-append "DESTDIR=" #$output) + (string-append "PREFIX=" #$output) + (string-append "CC=" #$(cc-for-target))) + #:phases + #~(modify-phases %standard-phases + (add-after 'unpack 'fix-etc-references + (lambda* (#:key outputs #:allow-other-keys) + (substitute* (find-files ".*") + (("/etc/xdg") (string-append #$output "/etc/xdg/glava"))))) + (add-after 'unpack 'patch-makefile + (lambda _ + (substitute* "Makefile" + (("$(DESTDIR)$(SHADERDIR)") + "$(SHADERDIR)")))) + (delete 'configure) + (add-after 'install 'make-wrapper + ;; https://github.com/NixOS/nixpkgs/blob/master/pkgs/applications/misc/glava/default.nix + (lambda* (#:key inputs outputs #:allow-other-keys) + (let* ((wrapper (string-append #$output "/bin/glava"))) + (with-output-to-file wrapper + (lambda _ + (display + (string-append + "#!/bin/sh\n" + "case \"$1\" in\n" + " --copy-config|-C)\n" + "# The binary would symlink it, which won't work in Guix because the\n" + "# garbage collector will eventually remove the original files after\n" + "# updates.\n" + " echo \"Guix wrapper: Copying glava config to ~/.config/glava\"\n" + " cp -r --no-preserve=all " #$output "/etc/xdg/glava ~/.config/glava\n" + " ;;\n" + "*)\n" + " exec " #$output "/bin/.glava-real \"$@\"\n" + "esac\n")))) + (chmod wrapper #o555)))) + (add-after 'install 'rename-binary + (lambda* (#:key outputs #:allow-other-keys) + (mkdir-p (string-append #$output "/bin")) + (rename-file (string-append #$output "/usr/bin/glava") + (string-append #$output "/bin/.glava-real")) + (delete-file-recursively (string-append #$output "/usr"))))))) + (inputs (list pulseaudio + libx11 + libxext + libxcomposite + libxrender)) + (native-inputs (list python)) + (home-page "https://github.com/jarcode-foss/glava") + (synopsis "OpenGL audio spectrum visualizer") + (description "GLava is an OpenGL audio spectrum visualizer using PulseAudio or +MPD's fifo output. Its primary use case is for desktop windows or backgrounds. +It is compatible with most EMWH compliant window managers.") + (license (list license:gpl3+ + license:expat)))) ;; khrplatform.h + (define-public fluid-3 (let ((commit "871c8ce2002e8b3c198f532fdb4fbcce7914f951")) (package base-commit: 60a211ec705ac98483d76da7f2523f2b8966343a -- 2.39.2