From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id YK1mCYZwOmUwBQAAG6o9tA:P1 (envelope-from ) for ; Thu, 26 Oct 2023 15:58:30 +0200 Received: from aspmx1.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id YK1mCYZwOmUwBQAAG6o9tA (envelope-from ) for ; Thu, 26 Oct 2023 15:58:30 +0200 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 DC2EE227B5 for ; Thu, 26 Oct 2023 15:58:29 +0200 (CEST) Authentication-Results: aspmx1.migadu.com; dkim=none ("invalid DKIM record") header.d=osvarcha.website header.s=default header.b=IvNtgUP1; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org" ARC-Seal: i=1; s=key1; d=yhetil.org; t=1698328709; a=rsa-sha256; cv=none; b=rXJY0KuCDEm1QtoUZPHnSBgD5odbkK8Q+V+9F+mh4G5y5y++DxYzYs+EDhLYFYkT7FECbQ K/PCEHBtzK0OR3DNtQilNPAA8bsDCuk8gweeffK30iAgzM2f/b8022w6nhJDuJueQkJwWM Y00BB8N7NEPa62bnMcyGFSDyOX1n+MvIMVsrLTKPJiCb0JcRodPz+/ND1euDnlL3/bPd9L l+cCe+CZ4ccZpX504T7Jm/7GDZp8s+cm40qxnDbhN6iQJeF/3gZ+GfzBRWEYrnvhgOVL49 5qokhV50jPF4nLyCqigHqfhANPaN3H7YSSxQgXRO6X5Faon3Td9UYwhIjinGdg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none ("invalid DKIM record") header.d=osvarcha.website header.s=default header.b=IvNtgUP1; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1698328709; 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:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=AfL3J7ZyVE87kIO0Hh7DTemywa8dTbnv9ejAc9+pnS8=; b=DZcogQWetlUDnkNfqP5iHLOz2lT6gziCnh2ZFVyUax4d708tODG5bQ7oPHczMMrhIER9wH Zm7VUnjGfRSljgwpCQ1r9PTz4dZp7lU8rOVksbhlkfd/Tud3XSuJXNnzdMbX1QVN8OXUvy d50lxoFmJSm9YQrpWahHjnYjWRsiDGyzYT0wATcqmrgV46J1zkAnXptMg84WmzCxZgGUy7 cGqYIflSgkAGDQ142KxGQZUnrdA6+0+WAWwFCVcdIf34gnr0sZhAIJPVnkJM6wRy2owh7u V2L8YUqoxawKv5XI3UlpEww4sUlGUGUwVTVAyOqnJhHZR0wg3BJUzxn7U02Qfw== Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qw0rw-0002vs-PF; Thu, 26 Oct 2023 09:57:52 -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 1qvM6m-0000n7-Sl for help-guix@gnu.org; Tue, 24 Oct 2023 14:26:28 -0400 Received: from mailout-pe-b.jellyfish.systems ([198.54.127.93]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qvM6g-0000MD-RT for help-guix@gnu.org; Tue, 24 Oct 2023 14:26:28 -0400 Received: from output-router-8479b784b6-qwttz (unknown [10.35.5.64]) by mailout-pe-b.jellyfish.systems (Postfix) with ESMTPA id 4SFL9J37KTzDqYc for ; Tue, 24 Oct 2023 18:26:12 +0000 (UTC) Received: from MTA-08.privateemail.com (unknown [10.50.14.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by NEW-01.privateemail.com (Postfix) with ESMTPS id 5A88A18000CF for ; Tue, 24 Oct 2023 14:26:12 -0400 (EDT) Received: from mta-08.privateemail.com (localhost [127.0.0.1]) by mta-08.privateemail.com (Postfix) with ESMTP id 2A45718000D3 for ; Tue, 24 Oct 2023 14:26:12 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=osvarcha.website; s=default; t=1698171972; bh=W6p0uo0nx8JeYzWS6DMQ9/z4bwfZY387aDcCrtXxAa4=; h=Date:From:To:Subject:From; b=IvNtgUP1kSJMXpNOn5GX6neglZ4NUVxp7dzgYrfMy5hXJ0/FUEsU168F/u5M5KuKt NrLwcuAEb3k8YIq6+yuYIyRIWv1GXEDhigh9SFgDMoRnje4mRV12laWD36VOzV+16i +2q876n5Ljlu+x5Iql1LclVwdlBLLNdNqD9hTKLFuViNDYfklClVam02Pz5a/Jz/m5 CgMlM1LKak39qcO/kuCYp0qwHSau5j5YDwiU23ifFBf04ZtxDdwv8/LiFR/pjQ1VNA EM17TciV9q/tCVt5vgZJZbae5TSgounIkV2tgNGsdULo801BP/xswLzQr5H+HkyrCa cATZGymBOZ7mg== Received: from APP-09 (unknown [10.50.14.159]) by mta-08.privateemail.com (Postfix) with ESMTPA for ; Tue, 24 Oct 2023 14:26:12 -0400 (EDT) Date: Tue, 24 Oct 2023 13:26:12 -0500 (PET) From: jean franco osvarcha To: "help-guix@gnu.org" Message-ID: <1012919286.243533.1698171972070@privateemail.com> Subject: How to create a package written in Go MIME-Version: 1.0 X-Priority: 3 Importance: Normal X-Mailer: Open-Xchange Mailer v7.10.6-Rev53 X-Originating-Client: open-xchange-appsuite X-Virus-Scanned: ClamAV using ClamSMTP Received-SPF: pass client-ip=198.54.127.93; envelope-from=talkme@osvarcha.website; helo=mailout-pe-b.jellyfish.systems X-Spam_score_int: -16 X-Spam_score: -1.7 X-Spam_bar: - X-Spam_report: (-1.7 / 5.0 requ) BAYES_00=-1.9, DKIM_INVALID=0.1, DKIM_SIGNED=0.1, HTML_MESSAGE=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Thu, 26 Oct 2023 09:57:51 -0400 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: help-guix@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+larch=yhetil.org@gnu.org Sender: help-guix-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Queue-Id: DC2EE227B5 X-Migadu-Scanner: mx12.migadu.com X-Migadu-Spam-Score: -5.10 X-Spam-Score: -5.10 X-TUID: 7dX66EcTJllf Hello guix users. I wanted to package the program nwg-look to edit my theme icons and others through a graphical interface because I am currently using Tiling Window Manager. nwg-look is written in GO and its repository is at [[https://github.com/nwg-piotr/nwg-look]], theoretically its compilation is simple because you only have to do one: -make build -sudo make install and reading the Makefile I can also do this manually: build: go build -v -o bin/nwg-look . install mkdir -p $(DESTDIR)/usr/share/nwg-look mkdir -p $(DESTDIR)/usr/share/nwg-look/langs mkdir -p $(DESTDIR)/usr/bin mkdir -p $(DESTDIR)/usr/share/applications mkdir -p $(DESTDIR)/usr/share/pixmaps cp stuff/main.glade $(DESTDIR)/usr/share/nwg-look/ cp langs/* $(DESTDIR)/usr/share/nwg-look/langs/ cp stuff/nwg-look.desktop $(DESTDIR)/usr/share/applications/ cp stuff/nwgg-look.svg $(DESTDIR)/usr/share/pixmaps/ cp bin/nwg-look $(DESTDIR)/usr/bin Which you could do this manually but it is not suitable in SDGuix. Reading the documentation in the Manual and the Cookbook I could only rely on small sample examples to which I could come up with this ~nwg-look-osv.scm~ file. (use-modules (guix licenses) (guix utils) (guix packages) (guix download) (guix build-system go) (gnu packages golang) (gnu packages xorg) (gnu packages gtk) (gnu packages pkg-config)) (package (name "nwg-look-osv") (version "0.2.4") (source (origin (method url-fetch) (uri (string-append "https://github.com/nwg-piotr/nwg-look/releases/download/" "v" version "/nwg-look-v" version "_x86_64" ".tar.gz")) (sha256 (base32 "1iphamazdsvl1cp59y8sxa3iswradna6z6rmm25nmpy3nxxbkapc")))) (build-system go-build-system) (synopsis "This application is a part of the nwg-shell project") (description "GTK3 settings editor adapted to work in the wlroots environment") (home-page "https://github.com/nwg-piotr/nwg-look/") (arguments '(#:import-path "https://github.com/nwg-piotr/nwg-look/")) (inputs (list go gtk+ xcur2png pkg-config)) (license gpl3+)) But I can't get it to compile and install, if I do it manually in a ~guix shell go gtk+ xcur2png pkg-config~ and compile it on my own it does but I don't know how to install it and create the manifest. I don't have much notion in Go and packaging in Guix, but I guide from all the examples of others packages, I tried to do it with trivial-build-system but it was messing me up, if anyone has a help or comment I'm happy to answer. Sorry for my english I'm using a translator DeepL