From patchwork Thu Oct 12 17:26:29 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Liliana Marie Prikler X-Patchwork-Id: 54792 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 987B327BBEA; Thu, 12 Oct 2023 19:23:52 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FROM,MAILING_LIST_MULTI, SPF_HELO_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 9E16827BBE9 for ; Thu, 12 Oct 2023 19:23:48 +0100 (BST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qr0LY-00072W-Rb; Thu, 12 Oct 2023 14:23:44 -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 1qr0LT-00071q-Ud for guix-patches@gnu.org; Thu, 12 Oct 2023 14:23:40 -0400 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qr0LT-0005He-Ln for guix-patches@gnu.org; Thu, 12 Oct 2023 14:23:39 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qr0Lq-0006vK-53 for guix-patches@gnu.org; Thu, 12 Oct 2023 14:24:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#66505] [PATCH] gnu: Add fast-downward. Resent-From: Liliana Marie Prikler Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 12 Oct 2023 18:24:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 66505 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 66505@debbugs.gnu.org X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.169713499026279 (code B ref -1); Thu, 12 Oct 2023 18:24:01 +0000 Received: (at submit) by debbugs.gnu.org; 12 Oct 2023 18:23:10 +0000 Received: from localhost ([127.0.0.1]:44273 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qr0Kz-0006pk-NK for submit@debbugs.gnu.org; Thu, 12 Oct 2023 14:23:10 -0400 Received: from lists.gnu.org ([2001:470:142::17]:43714) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qr0Ks-0006oZ-13 for submit@debbugs.gnu.org; Thu, 12 Oct 2023 14:23:08 -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 1qr0KP-0006c7-2q for guix-patches@gnu.org; Thu, 12 Oct 2023 14:22:33 -0400 Received: from mail-wm1-x343.google.com ([2a00:1450:4864:20::343]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qr0K9-0005A0-IL for guix-patches@gnu.org; Thu, 12 Oct 2023 14:22:32 -0400 Received: by mail-wm1-x343.google.com with SMTP id 5b1f17b1804b1-406618d080eso13871185e9.2 for ; Thu, 12 Oct 2023 11:22:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1697134935; x=1697739735; darn=gnu.org; h=mime-version:to:subject:date:from:message-id:from:to:cc:subject :date:message-id:reply-to; bh=moKaLMpKLzVXB5/2cOBnA8Ppb4hol5koiOEb2IWL6vM=; b=bXPTOZGdHurEpcNJzqL+LoqGpMm/TzMhwGP5nrBu5oJ9j/D/SJMrKK8U/6FfGoa4T7 qvrDv2ye0j3eHpuuSlSbnhiGqG0ZTXtFkSCU5sRHfBe5ZWI9VQMtgMw7y+4getr/fCwf Eqv3Jg9A1FSwkaugDgcoyggmDmtmVkaYaIgK2CaGFUy5EPYsOK6pANsMBbcv8cFbu5I8 PBKguWf961fYfvb/lNMBWGHp2EtmG0yQKcTgziz5+raDiShrhbV1FQrltB3keB0JBec3 I6g6+Nv00or7Q4S59mXz6Wyft05vyOHjlj0g7+8AZLJVZOZm8dT0Ncc43cXkc29Ap/jE 3xeQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697134935; x=1697739735; h=mime-version:to:subject:date:from:message-id:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=moKaLMpKLzVXB5/2cOBnA8Ppb4hol5koiOEb2IWL6vM=; b=B9j/38UD5whTtEEGRDQoo9xvt/qmIYa8mEYjOU6GBo5NbJHHdApxjkuR5rEquwpmJh TkVt+aP1OflX/tcWkthc4K4tud0AC4Y/49X9FZHFEXg1brpHXBQH4kqVBQKbSf5lL+3U U0rMqhxpnnJXxgzu4Pp6XiHLCRFkBvVHTYCC+HhE6ps4x6LTbRU4A1cMll2gMiOfTVDF 51Ay5v+gpwww+Ic/92NfOxqcyj2wKRb3t676cspzC9Uz0UK9TQAg4qd+8vaxxf4SRqQN oEU7J+nZUgyabEMbaUmLlOAXqBbrMtLgD1CHLB/00R186zyiLnuJxWM/tFDqCzahl5kY Fw/g== X-Gm-Message-State: AOJu0YyHyfTN9PyNFgEjp7X8NHIuYQUohEtfZ67CZp4ZtFv7hLPUXUps /gUmn/M9lXkUbFBmzrPRd9vsBQQBGUtq2g== X-Google-Smtp-Source: AGHT+IGNwmYnENPf9kQJf9oGpyhvQsRa5CqJIqq2ghaz72BLunGVDr0ZvbL82NN8PaUbeFqnbIB+4Q== X-Received: by 2002:a05:600c:290:b0:406:177e:5df7 with SMTP id 16-20020a05600c029000b00406177e5df7mr21531768wmk.29.1697134935155; Thu, 12 Oct 2023 11:22:15 -0700 (PDT) Received: from lumine.fritz.box (85-127-52-93.dsl.dynamic.surfer.at. [85.127.52.93]) by smtp.gmail.com with ESMTPSA id g9-20020a7bc4c9000000b00405959469afsm482275wmk.3.2023.10.12.11.22.14 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 12 Oct 2023 11:22:14 -0700 (PDT) Message-ID: <6af9732e8aefc27bea7de734242609a88ff4dd32.1697134721.git.liliana.prikler@gmail.com> From: Liliana Marie Prikler Date: Thu, 12 Oct 2023 19:26:29 +0200 MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::343; envelope-from=liliana.prikler@gmail.com; helo=mail-wm1-x343.google.com 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, FREEMAIL_FROM=0.001, 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+patchwork=mira.cbaines.net@gnu.org Sender: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org X-getmail-retrieved-from-mailbox: Patches * gnu/packages/maths.scm (fast-downward): New variable. --- gnu/packages/maths.scm | 55 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 55 insertions(+) base-commit: 1328c4cca531318e3ed90c6aecb522a5b22a4bcc prerequisite-patch-id: c1e8930b4fa8edf38130d45c5205a019b6e26dc7 prerequisite-patch-id: 730b3b393d9502ebb6b8339f7ead9589cec71c6f prerequisite-patch-id: 1fdb09d54aa0ba3082f9501119c9810a36b0c66a diff --git a/gnu/packages/maths.scm b/gnu/packages/maths.scm index 9d157ae921..3ad3170b09 100644 --- a/gnu/packages/maths.scm +++ b/gnu/packages/maths.scm @@ -3178,6 +3178,61 @@ (define-public opencascade-occt ;; File src/NCollection/NCollection_StdAllocator.hxx: license:public-domain)))) +(define-public fast-downward + (package + (name "fast-downward") + (version "23.06.0") + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/aibasel/downward") + (commit (string-append "release-" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1xrgnvbkzkdf6srbrlsnf4qrgp0f1lkk7yxf34ynna0w49l468d4")))) + (build-system cmake-build-system) + (arguments + (list + #:tests? #f ; no tests + #:phases + #~(modify-phases %standard-phases + (add-after 'unpack 'fix-driver + (lambda* (#:key outputs #:allow-other-keys) + (substitute* "driver/run_components.py" + ;; strip gratuitous "bin" + (("os\\.path\\.join\\((.*), \"bin\"\\)" all keep) + (string-append "os.path.join(" keep ")"))))) + (add-before 'configure 'chdir + (lambda _ (chdir "src"))) + (replace 'install + (lambda* (#:key outputs #:allow-other-keys) + (let* ((out (assoc-ref outputs "out")) + (dest (string-append out "/libexec/fast-downward" + "/builds/release"))) + (mkdir-p dest) + (with-directory-excursion "bin" + (install-file "downward" dest) + (copy-recursively "translate" + (string-append dest "/translate")))))) + (add-after 'install 'install-driver + (lambda* (#:key outputs #:allow-other-keys) + (with-directory-excursion ".." + (let* ((out (assoc-ref outputs "out")) + (bin (string-append out "/bin/fast-downward")) + (dest (string-append out "/libexec/fast-downward"))) + (copy-recursively "driver" + (string-append dest "/driver")) + (mkdir-p (dirname bin)) + (copy-file "fast-downward.py" bin) + (wrap-program bin + `("PYTHONPATH" prefix (,dest)))))))))) + (inputs (list bash-minimal python)) + (home-page "https://www.fast-downward.org/") + (synopsis "Domain-independant classical planning system") + (description "Fast Downward is a portfolio-based planning system that +supports the propositional fragment of PDDL2.2.") + (license license:gpl3+))) + (define-public gmsh (package (name "gmsh")