From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:50165) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1frtwt-0005nv-E8 for guix-patches@gnu.org; Mon, 20 Aug 2018 19:51:07 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1frtt0-0003dh-Bo for guix-patches@gnu.org; Mon, 20 Aug 2018 19:47:05 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:51013) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1frtsz-0003cw-Ul for guix-patches@gnu.org; Mon, 20 Aug 2018 19:47:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1frtsz-0007VM-Lq for guix-patches@gnu.org; Mon, 20 Aug 2018 19:47:01 -0400 Subject: [bug#32488] [PATCH] gnu: Add msr-tools. Resent-Message-ID: References: <20180820231633.3020-1-me@tobias.gr> From: Tobias Geerinckx-Rice In-reply-to: <20180820231633.3020-1-me@tobias.gr> Date: Tue, 21 Aug 2018 01:46:23 +0200 Message-ID: <87woskr48g.fsf@tobias.gr> MIME-Version: 1.0 Content-Type: text/plain; format=flowed List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: 32488@debbugs.gnu.org Tobias Geerinckx-Rice wrote: > * gnu/packages/admin.scm (msr-tools): New public variable. > --- > gnu/packages/admin.scm | 46 > ++++++++++++++++++++++++++++++++++++++++++ > 1 file changed, 46 insertions(+) > > diff --git a/gnu/packages/admin.scm b/gnu/packages/admin.scm > index c9230c329..ac259fc00 100644 > --- a/gnu/packages/admin.scm > +++ b/gnu/packages/admin.scm > @@ -468,6 +468,52 @@ asks for a login name and then transfers > over to 'login'. It is extended to > allow automatic login and starting any app.") > (license license:gpl2+))) > > +(define-public msr-tools > + (package > + (name "msr-tools") > + (version "1.3") > + (source > + (origin > + (method url-fetch) > + (uri (string-append > "https://01.org/sites/default/files/downloads/" > + name "/" name "-" version ".zip")) > + (sha256 > + (base32 > "07hxmddg0l31kjfmaq84ni142lbbvgq6391r8bd79wpm819pnigr")))) > + (build-system gnu-build-system) > + (arguments > + `(#:make-flags > + (list (string-append "sbindir=" (assoc-ref %outputs > "out") "/sbin")) > + #:phases > + (modify-phases %standard-phases > + (delete 'configure) ; no configure script > + (add-before 'install 'create-output-directory > + (lambda* (#:key outputs #:allow-other-keys) > + (let* ((out (assoc-ref outputs "out")) > + (sbin (string-append out "/sbin"))) > + (mkdir-p sbin) > + #t)))) > + #:tests? #f)) ; no test suite Also, as Marius just noted, this is all hella x86-specific so just imagine a + (supported-systems '("i686-linux" "x86_64-linux")) right around here. Kind regards, T G-R