From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:8:6d80::]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id wBQgFb5RhGB/DAEAgWs5BA (envelope-from ) for ; Sat, 24 Apr 2021 19:13:34 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id AATDEL5RhGCQOQAAbx9fmQ (envelope-from ) for ; Sat, 24 Apr 2021 17:13:34 +0000 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 C97B12E2F8 for ; Sat, 24 Apr 2021 19:13:33 +0200 (CEST) Received: from localhost ([::1]:54070 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1laLqX-0006Ec-1F for larch@yhetil.org; Sat, 24 Apr 2021 13:13:33 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:33480) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1laLq2-0006EH-Ha for guix-patches@gnu.org; Sat, 24 Apr 2021 13:13:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:58074) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1laLq2-0005ka-Ae for guix-patches@gnu.org; Sat, 24 Apr 2021 13:13:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1laLq2-0002LH-4G for guix-patches@gnu.org; Sat, 24 Apr 2021 13:13:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#47998] [PATCH] gnu: Add siggen. Resent-From: Arun Isaac Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 24 Apr 2021 17:13:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 47998 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 47998@debbugs.gnu.org Cc: Arun Isaac X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.16192843758989 (code B ref -1); Sat, 24 Apr 2021 17:13:01 +0000 Received: (at submit) by debbugs.gnu.org; 24 Apr 2021 17:12:55 +0000 Received: from localhost ([127.0.0.1]:41387 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1laLpq-0002Ko-4O for submit@debbugs.gnu.org; Sat, 24 Apr 2021 13:12:55 -0400 Received: from lists.gnu.org ([209.51.188.17]:55680) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1laLpn-0002Kf-Aa for submit@debbugs.gnu.org; Sat, 24 Apr 2021 13:12:48 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:33430) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1laLpn-0006Cw-5U for guix-patches@gnu.org; Sat, 24 Apr 2021 13:12:47 -0400 Received: from mugam.systemreboot.net ([139.59.75.54]:34366) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1laLpj-0005Ym-1l for guix-patches@gnu.org; Sat, 24 Apr 2021 13:12:46 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=systemreboot.net; s=default; h=Content-Transfer-Encoding:Content-Type: MIME-Version:Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=n7YHjH2mhcgoZEvFWoTxoq55KmHc8yX4uyGJaBf/bc4=; b=OCXUEGpV9Mwwuf65Q046YHjv58 VmWwpHHfjBENFiNUvW2Etv55CLlZQyuGuZLfAQrXst2Xtr9mPZMdAQEn0HHptcOx47F46kAOclDYp QMiES2/r/31HwmrLL7IuJvU3kYqFp8MtTCPPBrBavw79ptGKBgH9PvD5ZMelihJ/jZM0DJIEjhUze /6UDGZTUbrHzyb+pSo0AMJ7ffuE8vF3MIfyNcGETqohxpW0u994FTkh62aICRNWSM6zYnrQnL7Yuw GlohlLXsZzmeWGpl8UGgBbxaViG/uING7xEC7tuu7eU6sh/79SX5Tyndf5G2V8A5++T06eYajposb t2KK4FXg==; Received: from [192.168.2.1] (helo=localhost.localdomain) by systemreboot.net with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94) (envelope-from ) id 1laLpd-000fqe-9Z; Sat, 24 Apr 2021 22:42:37 +0530 From: Arun Isaac Date: Sat, 24 Apr 2021 22:42:34 +0530 Message-Id: <20210424171234.28651-1-arunisaac@systemreboot.net> X-Mailer: git-send-email 2.31.0 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=139.59.75.54; envelope-from=arunisaac@systemreboot.net; helo=mugam.systemreboot.net X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action 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" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1619284414; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc: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=n7YHjH2mhcgoZEvFWoTxoq55KmHc8yX4uyGJaBf/bc4=; b=fWa5BMbTminoxgZgsn6bYhxOE66/8GhTXH7MPTcWMoMzrzAUAGfToJdCareOOKIu3bXoFz zBA+uG3QMM51uOonIMYLAmkP75BgueKacCY+z1NjI2X+7UfSeAjflyr0SiFOlJP2B/vkDf c5dPaR2aTHMYB7zdXwhhfasFbim2mgUxiJmiT7I+enSD3J3URYzrQJHz+ivAA1YXke+9uR wEluf7alv5TI5tf0a9CjYYh+qGRSM29kU6hYa7ATkAS0nua3PNTOP0D8fV3Z2ghGxt2wVd 6tsDbAlf4eGPV7C83vyFGeutPoptapJtOfnmDEwCe7Eq5prX7uEWSwAL0r1fOQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1619284414; a=rsa-sha256; cv=none; b=RX/J/yN9lKmmiv6CShGGPEwO7MwdOui4FXWfw2uCpngk1QfX1t9hOQ4yN9Nfcrjej/bJ17 q4hKb5m5d9QwuDI9VppwM936bzoa4gE+IEuMTi6mon9IP24DnfWDGJGXFIfngVlL6Vg3vq iqp2XaAs1y5Y8oAgMXm/HEQP7yWXOsDhoIWkPCKwtC2K6Orvk1HEnoX8PJL6TwlSUIZRvV tnDDOh6vkhFISt4iX3AKET2RRIOYVnhasVidnfosggEZOIsYpYFcO0ay0/xQnOZQFLdU0k bqZJ6IJOf1UK9SXqGYhxY5ftDvF/xNPI3Q696WDOW8M7qvgX9C+ZZOyfIqp3ew== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=systemreboot.net header.s=default header.b=OCXUEGpV; dmarc=fail reason="SPF not aligned (relaxed)" header.from=systemreboot.net (policy=none); spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Spam-Score: 1.16 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=systemreboot.net header.s=default header.b=OCXUEGpV; dmarc=fail reason="SPF not aligned (relaxed)" header.from=systemreboot.net (policy=none); spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Queue-Id: C97B12E2F8 X-Spam-Score: 1.16 X-Migadu-Scanner: scn0.migadu.com X-TUID: kTP7pq58U1FX * gnu/packages/audio.scm (siggen): New variable. --- gnu/packages/audio.scm | 51 +++++++++++++++++++++++++++++++++++++++++- 1 file changed, 50 insertions(+), 1 deletion(-) diff --git a/gnu/packages/audio.scm b/gnu/packages/audio.scm index a866492558..5f95268af2 100644 --- a/gnu/packages/audio.scm +++ b/gnu/packages/audio.scm @@ -21,7 +21,7 @@ ;;; Copyright © 2019, 2021 Pierre Langlois ;;; Copyright © 2019, 2021 Leo Famulari ;;; Copyright © 2019 Rutger Helling -;;; Copyright © 2019 Arun Isaac +;;; Copyright © 2019, 2021 Arun Isaac ;;; Copyright © 2019 Mathieu Othacehe ;;; Copyright © 2019, 2020 Alexandros Theodotou ;;; Copyright © 2019 Christopher Lemmer Webber @@ -78,6 +78,7 @@ #:use-module (gnu packages gnome) #:use-module (gnu packages gnunet) ; libmicrohttpd #:use-module (gnu packages gperf) + #:use-module (gnu packages groff) #:use-module (gnu packages gstreamer) #:use-module (gnu packages gtk) #:use-module (gnu packages guile) @@ -107,6 +108,7 @@ #:use-module (gnu packages serialization) #:use-module (gnu packages telephony) #:use-module (gnu packages linphone) + #:use-module (gnu packages linux) #:use-module (gnu packages tls) #:use-module (gnu packages valgrind) #:use-module (gnu packages video) @@ -5190,3 +5192,50 @@ while still staying in time.") (description "Butt is a tool to stream audio to a ShoutCast or Icecast server.") (license license:gpl2+))) + +(define-public siggen + (package + (name "siggen") + (version "2.3.10") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/bleskodev/siggen") + (commit "a407611b59d59c7770bbe62ba9b8e9a948cf3210"))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "0szhgfd9kddr6qsz0imp0x66jjn6ry236f35vjl82ivc1v2bllcb")))) + (build-system gnu-build-system) + (arguments + `(#:make-flags (list (string-append "INSDIR=" %output "/bin") + (string-append "MANDIR=" %output "/share/man")) + #:tests? #f ; no tests + #:phases + (modify-phases %standard-phases + ;; Patch misc.c to prevent a segfault. + (add-after 'unpack 'patch-segfault + (lambda _ + (substitute* "misc.c" + (("#include \n" all) + (string-append all "#include \n"))))) + (delete 'configure) + (replace 'install + (lambda* (#:key make-flags outputs #:allow-other-keys) + (let ((out (assoc-ref outputs "out"))) + (for-each (lambda (dir) + (mkdir-p (string-append out dir))) + (list "/bin" "/share/man/man1" "/share/man/man5")) + (apply invoke "make" "sysinstall" make-flags))))))) + (inputs + `(("ncurses" ,ncurses))) + (native-inputs + `(("groff" ,groff-minimal) ; for nroff + ("util-linux" ,util-linux))) ; for col + (home-page "https://github.com/bleskodev/siggen") + (synopsis "Signal generation tools") + (description "siggen is a set of tools for imitating a laboratory signal +generator, generating audio signals out of Linux's /dev/dsp audio +device. There is support for mono and/or stereo and 8 or 16 bit samples.") + (license license:gpl2))) -- 2.31.0