* manifest.scm - Howddya get specific commit 4 package?
@ 2022-01-11 0:18 Jacob Hrbek
2022-01-13 19:19 ` Niklas Schmidt
0 siblings, 1 reply; 2+ messages in thread
From: Jacob Hrbek @ 2022-01-11 0:18 UTC (permalink / raw)
To: help-guix
[-- Attachment #1.1: Type: text/plain, Size: 1136 bytes --]
kreyren@leonid~$ cat ~/Repositories/RiXotStudio/25-env/freecad/manifest.scm
#!/usr/bin/env -S guix shell -m
!#
;;; Recipe to provide GNU Emacs through Guix
(use-modules
(guix channels))
;; DNR-CI(Krey): Needs handling to keep the hash up-to-date
(list (channel
(name 'guix)
(url "https://git.savannah.gnu.org/git/guix.git")
(commit
"f1bfd9f1948a5ff336d737c0614b9a30c2bb3097")
(introduction
(make-channel-introduction
"9edb3f66fd807b096b48283debdcddccfea34bad"
(openpgp-fingerprint
"BBB0 2DDF 2CEA F6A8 0D1D E643 A2A0 6DF2 A33A 54FA")))))
(specifications->manifest
(list
"freecad"
;; DEP(Krey): Used for working with openscad designs
"openscad"))
I need FreeCAD 07c51f1b2ce62b1c770ffde8a7c40899a8abf846 -> How can i get
it through manifest.scm without using guix install freecad
--with-commit=freecad=07c51f1b2ce62b1c770ffde8a7c40899a8abf846 ?
--
-- Jacob Hrbek
[-- Attachment #1.2: publickey - kreyren@rixotstudio.cz - 1677db82.asc --]
[-- Type: application/pgp-keys, Size: 713 bytes --]
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 249 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: manifest.scm - Howddya get specific commit 4 package?
2022-01-11 0:18 manifest.scm - Howddya get specific commit 4 package? Jacob Hrbek
@ 2022-01-13 19:19 ` Niklas Schmidt
0 siblings, 0 replies; 2+ messages in thread
From: Niklas Schmidt @ 2022-01-13 19:19 UTC (permalink / raw)
To: Jacob Hrbek; +Cc: help-guix
Hello Jacob,
I would like to point you to the section 2.1.5.3 Inheritance of the
cookbook:
https://guix.gnu.org/cookbook/en/guix-cookbook.html#Inheritance
There it says:
All unspecified fields are inherited from the parent package. This is
very convenient to create alternative packages, for instance with
different source, version or compilation options.
So I usually create my own package module, specify a new package that
inherits the package I'm interested in and give it another unique name,
say my-freecad. Then I specify my-freecad in the manifest and use the -L
or --load-path= flag with the file system path of own package module to
invoke guix package, guix shell, and so on.
Hope that get's you somewhere.
To be exact, I have not used this technique for obtaining a package a
specific commit, but for different versions. I see no reason it wouldn't
work for this scenario as well, though.
Greetings
Niklas
On Tue, Jan 11, 2022 at 00:18:01 +0000, Jacob Hrbek wrote:
>I need FreeCAD 07c51f1b2ce62b1c770ffde8a7c40899a8abf846 -> How can i
>get it through manifest.scm without using guix install freecad
>--with-commit=freecad=07c51f1b2ce62b1c770ffde8a7c40899a8abf846 ?
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2022-01-13 19:21 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-01-11 0:18 manifest.scm - Howddya get specific commit 4 package? Jacob Hrbek
2022-01-13 19:19 ` Niklas Schmidt
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.