initial
This commit is contained in:
commit
e133f29abc
27 changed files with 3290 additions and 0 deletions
7
.guix-authorizations
Normal file
7
.guix-authorizations
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
;; vi: ft=scheme
|
||||||
|
|
||||||
|
(authorizations
|
||||||
|
(version 0)
|
||||||
|
|
||||||
|
(("4F6B C11C EBB2 F242 14B9 0FAC 9FF6 937B 829E 565A"
|
||||||
|
(name "freya"))))
|
5
.guix-channel
Normal file
5
.guix-channel
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
;; vi: ft=scheme
|
||||||
|
|
||||||
|
(channel
|
||||||
|
(version 0)
|
||||||
|
(url "https://g.freya.cat/freya/sakura"))
|
674
LICENSE
Normal file
674
LICENSE
Normal file
|
@ -0,0 +1,674 @@
|
||||||
|
GNU GENERAL PUBLIC LICENSE
|
||||||
|
Version 3, 29 June 2007
|
||||||
|
|
||||||
|
Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/>
|
||||||
|
Everyone is permitted to copy and distribute verbatim copies
|
||||||
|
of this license document, but changing it is not allowed.
|
||||||
|
|
||||||
|
Preamble
|
||||||
|
|
||||||
|
The GNU General Public License is a free, copyleft license for
|
||||||
|
software and other kinds of works.
|
||||||
|
|
||||||
|
The licenses for most software and other practical works are designed
|
||||||
|
to take away your freedom to share and change the works. By contrast,
|
||||||
|
the GNU General Public License is intended to guarantee your freedom to
|
||||||
|
share and change all versions of a program--to make sure it remains free
|
||||||
|
software for all its users. We, the Free Software Foundation, use the
|
||||||
|
GNU General Public License for most of our software; it applies also to
|
||||||
|
any other work released this way by its authors. You can apply it to
|
||||||
|
your programs, too.
|
||||||
|
|
||||||
|
When we speak of free software, we are referring to freedom, not
|
||||||
|
price. Our General Public Licenses are designed to make sure that you
|
||||||
|
have the freedom to distribute copies of free software (and charge for
|
||||||
|
them if you wish), that you receive source code or can get it if you
|
||||||
|
want it, that you can change the software or use pieces of it in new
|
||||||
|
free programs, and that you know you can do these things.
|
||||||
|
|
||||||
|
To protect your rights, we need to prevent others from denying you
|
||||||
|
these rights or asking you to surrender the rights. Therefore, you have
|
||||||
|
certain responsibilities if you distribute copies of the software, or if
|
||||||
|
you modify it: responsibilities to respect the freedom of others.
|
||||||
|
|
||||||
|
For example, if you distribute copies of such a program, whether
|
||||||
|
gratis or for a fee, you must pass on to the recipients the same
|
||||||
|
freedoms that you received. You must make sure that they, too, receive
|
||||||
|
or can get the source code. And you must show them these terms so they
|
||||||
|
know their rights.
|
||||||
|
|
||||||
|
Developers that use the GNU GPL protect your rights with two steps:
|
||||||
|
(1) assert copyright on the software, and (2) offer you this License
|
||||||
|
giving you legal permission to copy, distribute and/or modify it.
|
||||||
|
|
||||||
|
For the developers' and authors' protection, the GPL clearly explains
|
||||||
|
that there is no warranty for this free software. For both users' and
|
||||||
|
authors' sake, the GPL requires that modified versions be marked as
|
||||||
|
changed, so that their problems will not be attributed erroneously to
|
||||||
|
authors of previous versions.
|
||||||
|
|
||||||
|
Some devices are designed to deny users access to install or run
|
||||||
|
modified versions of the software inside them, although the manufacturer
|
||||||
|
can do so. This is fundamentally incompatible with the aim of
|
||||||
|
protecting users' freedom to change the software. The systematic
|
||||||
|
pattern of such abuse occurs in the area of products for individuals to
|
||||||
|
use, which is precisely where it is most unacceptable. Therefore, we
|
||||||
|
have designed this version of the GPL to prohibit the practice for those
|
||||||
|
products. If such problems arise substantially in other domains, we
|
||||||
|
stand ready to extend this provision to those domains in future versions
|
||||||
|
of the GPL, as needed to protect the freedom of users.
|
||||||
|
|
||||||
|
Finally, every program is threatened constantly by software patents.
|
||||||
|
States should not allow patents to restrict development and use of
|
||||||
|
software on general-purpose computers, but in those that do, we wish to
|
||||||
|
avoid the special danger that patents applied to a free program could
|
||||||
|
make it effectively proprietary. To prevent this, the GPL assures that
|
||||||
|
patents cannot be used to render the program non-free.
|
||||||
|
|
||||||
|
The precise terms and conditions for copying, distribution and
|
||||||
|
modification follow.
|
||||||
|
|
||||||
|
TERMS AND CONDITIONS
|
||||||
|
|
||||||
|
0. Definitions.
|
||||||
|
|
||||||
|
"This License" refers to version 3 of the GNU General Public License.
|
||||||
|
|
||||||
|
"Copyright" also means copyright-like laws that apply to other kinds of
|
||||||
|
works, such as semiconductor masks.
|
||||||
|
|
||||||
|
"The Program" refers to any copyrightable work licensed under this
|
||||||
|
License. Each licensee is addressed as "you". "Licensees" and
|
||||||
|
"recipients" may be individuals or organizations.
|
||||||
|
|
||||||
|
To "modify" a work means to copy from or adapt all or part of the work
|
||||||
|
in a fashion requiring copyright permission, other than the making of an
|
||||||
|
exact copy. The resulting work is called a "modified version" of the
|
||||||
|
earlier work or a work "based on" the earlier work.
|
||||||
|
|
||||||
|
A "covered work" means either the unmodified Program or a work based
|
||||||
|
on the Program.
|
||||||
|
|
||||||
|
To "propagate" a work means to do anything with it that, without
|
||||||
|
permission, would make you directly or secondarily liable for
|
||||||
|
infringement under applicable copyright law, except executing it on a
|
||||||
|
computer or modifying a private copy. Propagation includes copying,
|
||||||
|
distribution (with or without modification), making available to the
|
||||||
|
public, and in some countries other activities as well.
|
||||||
|
|
||||||
|
To "convey" a work means any kind of propagation that enables other
|
||||||
|
parties to make or receive copies. Mere interaction with a user through
|
||||||
|
a computer network, with no transfer of a copy, is not conveying.
|
||||||
|
|
||||||
|
An interactive user interface displays "Appropriate Legal Notices"
|
||||||
|
to the extent that it includes a convenient and prominently visible
|
||||||
|
feature that (1) displays an appropriate copyright notice, and (2)
|
||||||
|
tells the user that there is no warranty for the work (except to the
|
||||||
|
extent that warranties are provided), that licensees may convey the
|
||||||
|
work under this License, and how to view a copy of this License. If
|
||||||
|
the interface presents a list of user commands or options, such as a
|
||||||
|
menu, a prominent item in the list meets this criterion.
|
||||||
|
|
||||||
|
1. Source Code.
|
||||||
|
|
||||||
|
The "source code" for a work means the preferred form of the work
|
||||||
|
for making modifications to it. "Object code" means any non-source
|
||||||
|
form of a work.
|
||||||
|
|
||||||
|
A "Standard Interface" means an interface that either is an official
|
||||||
|
standard defined by a recognized standards body, or, in the case of
|
||||||
|
interfaces specified for a particular programming language, one that
|
||||||
|
is widely used among developers working in that language.
|
||||||
|
|
||||||
|
The "System Libraries" of an executable work include anything, other
|
||||||
|
than the work as a whole, that (a) is included in the normal form of
|
||||||
|
packaging a Major Component, but which is not part of that Major
|
||||||
|
Component, and (b) serves only to enable use of the work with that
|
||||||
|
Major Component, or to implement a Standard Interface for which an
|
||||||
|
implementation is available to the public in source code form. A
|
||||||
|
"Major Component", in this context, means a major essential component
|
||||||
|
(kernel, window system, and so on) of the specific operating system
|
||||||
|
(if any) on which the executable work runs, or a compiler used to
|
||||||
|
produce the work, or an object code interpreter used to run it.
|
||||||
|
|
||||||
|
The "Corresponding Source" for a work in object code form means all
|
||||||
|
the source code needed to generate, install, and (for an executable
|
||||||
|
work) run the object code and to modify the work, including scripts to
|
||||||
|
control those activities. However, it does not include the work's
|
||||||
|
System Libraries, or general-purpose tools or generally available free
|
||||||
|
programs which are used unmodified in performing those activities but
|
||||||
|
which are not part of the work. For example, Corresponding Source
|
||||||
|
includes interface definition files associated with source files for
|
||||||
|
the work, and the source code for shared libraries and dynamically
|
||||||
|
linked subprograms that the work is specifically designed to require,
|
||||||
|
such as by intimate data communication or control flow between those
|
||||||
|
subprograms and other parts of the work.
|
||||||
|
|
||||||
|
The Corresponding Source need not include anything that users
|
||||||
|
can regenerate automatically from other parts of the Corresponding
|
||||||
|
Source.
|
||||||
|
|
||||||
|
The Corresponding Source for a work in source code form is that
|
||||||
|
same work.
|
||||||
|
|
||||||
|
2. Basic Permissions.
|
||||||
|
|
||||||
|
All rights granted under this License are granted for the term of
|
||||||
|
copyright on the Program, and are irrevocable provided the stated
|
||||||
|
conditions are met. This License explicitly affirms your unlimited
|
||||||
|
permission to run the unmodified Program. The output from running a
|
||||||
|
covered work is covered by this License only if the output, given its
|
||||||
|
content, constitutes a covered work. This License acknowledges your
|
||||||
|
rights of fair use or other equivalent, as provided by copyright law.
|
||||||
|
|
||||||
|
You may make, run and propagate covered works that you do not
|
||||||
|
convey, without conditions so long as your license otherwise remains
|
||||||
|
in force. You may convey covered works to others for the sole purpose
|
||||||
|
of having them make modifications exclusively for you, or provide you
|
||||||
|
with facilities for running those works, provided that you comply with
|
||||||
|
the terms of this License in conveying all material for which you do
|
||||||
|
not control copyright. Those thus making or running the covered works
|
||||||
|
for you must do so exclusively on your behalf, under your direction
|
||||||
|
and control, on terms that prohibit them from making any copies of
|
||||||
|
your copyrighted material outside their relationship with you.
|
||||||
|
|
||||||
|
Conveying under any other circumstances is permitted solely under
|
||||||
|
the conditions stated below. Sublicensing is not allowed; section 10
|
||||||
|
makes it unnecessary.
|
||||||
|
|
||||||
|
3. Protecting Users' Legal Rights From Anti-Circumvention Law.
|
||||||
|
|
||||||
|
No covered work shall be deemed part of an effective technological
|
||||||
|
measure under any applicable law fulfilling obligations under article
|
||||||
|
11 of the WIPO copyright treaty adopted on 20 December 1996, or
|
||||||
|
similar laws prohibiting or restricting circumvention of such
|
||||||
|
measures.
|
||||||
|
|
||||||
|
When you convey a covered work, you waive any legal power to forbid
|
||||||
|
circumvention of technological measures to the extent such circumvention
|
||||||
|
is effected by exercising rights under this License with respect to
|
||||||
|
the covered work, and you disclaim any intention to limit operation or
|
||||||
|
modification of the work as a means of enforcing, against the work's
|
||||||
|
users, your or third parties' legal rights to forbid circumvention of
|
||||||
|
technological measures.
|
||||||
|
|
||||||
|
4. Conveying Verbatim Copies.
|
||||||
|
|
||||||
|
You may convey verbatim copies of the Program's source code as you
|
||||||
|
receive it, in any medium, provided that you conspicuously and
|
||||||
|
appropriately publish on each copy an appropriate copyright notice;
|
||||||
|
keep intact all notices stating that this License and any
|
||||||
|
non-permissive terms added in accord with section 7 apply to the code;
|
||||||
|
keep intact all notices of the absence of any warranty; and give all
|
||||||
|
recipients a copy of this License along with the Program.
|
||||||
|
|
||||||
|
You may charge any price or no price for each copy that you convey,
|
||||||
|
and you may offer support or warranty protection for a fee.
|
||||||
|
|
||||||
|
5. Conveying Modified Source Versions.
|
||||||
|
|
||||||
|
You may convey a work based on the Program, or the modifications to
|
||||||
|
produce it from the Program, in the form of source code under the
|
||||||
|
terms of section 4, provided that you also meet all of these conditions:
|
||||||
|
|
||||||
|
a) The work must carry prominent notices stating that you modified
|
||||||
|
it, and giving a relevant date.
|
||||||
|
|
||||||
|
b) The work must carry prominent notices stating that it is
|
||||||
|
released under this License and any conditions added under section
|
||||||
|
7. This requirement modifies the requirement in section 4 to
|
||||||
|
"keep intact all notices".
|
||||||
|
|
||||||
|
c) You must license the entire work, as a whole, under this
|
||||||
|
License to anyone who comes into possession of a copy. This
|
||||||
|
License will therefore apply, along with any applicable section 7
|
||||||
|
additional terms, to the whole of the work, and all its parts,
|
||||||
|
regardless of how they are packaged. This License gives no
|
||||||
|
permission to license the work in any other way, but it does not
|
||||||
|
invalidate such permission if you have separately received it.
|
||||||
|
|
||||||
|
d) If the work has interactive user interfaces, each must display
|
||||||
|
Appropriate Legal Notices; however, if the Program has interactive
|
||||||
|
interfaces that do not display Appropriate Legal Notices, your
|
||||||
|
work need not make them do so.
|
||||||
|
|
||||||
|
A compilation of a covered work with other separate and independent
|
||||||
|
works, which are not by their nature extensions of the covered work,
|
||||||
|
and which are not combined with it such as to form a larger program,
|
||||||
|
in or on a volume of a storage or distribution medium, is called an
|
||||||
|
"aggregate" if the compilation and its resulting copyright are not
|
||||||
|
used to limit the access or legal rights of the compilation's users
|
||||||
|
beyond what the individual works permit. Inclusion of a covered work
|
||||||
|
in an aggregate does not cause this License to apply to the other
|
||||||
|
parts of the aggregate.
|
||||||
|
|
||||||
|
6. Conveying Non-Source Forms.
|
||||||
|
|
||||||
|
You may convey a covered work in object code form under the terms
|
||||||
|
of sections 4 and 5, provided that you also convey the
|
||||||
|
machine-readable Corresponding Source under the terms of this License,
|
||||||
|
in one of these ways:
|
||||||
|
|
||||||
|
a) Convey the object code in, or embodied in, a physical product
|
||||||
|
(including a physical distribution medium), accompanied by the
|
||||||
|
Corresponding Source fixed on a durable physical medium
|
||||||
|
customarily used for software interchange.
|
||||||
|
|
||||||
|
b) Convey the object code in, or embodied in, a physical product
|
||||||
|
(including a physical distribution medium), accompanied by a
|
||||||
|
written offer, valid for at least three years and valid for as
|
||||||
|
long as you offer spare parts or customer support for that product
|
||||||
|
model, to give anyone who possesses the object code either (1) a
|
||||||
|
copy of the Corresponding Source for all the software in the
|
||||||
|
product that is covered by this License, on a durable physical
|
||||||
|
medium customarily used for software interchange, for a price no
|
||||||
|
more than your reasonable cost of physically performing this
|
||||||
|
conveying of source, or (2) access to copy the
|
||||||
|
Corresponding Source from a network server at no charge.
|
||||||
|
|
||||||
|
c) Convey individual copies of the object code with a copy of the
|
||||||
|
written offer to provide the Corresponding Source. This
|
||||||
|
alternative is allowed only occasionally and noncommercially, and
|
||||||
|
only if you received the object code with such an offer, in accord
|
||||||
|
with subsection 6b.
|
||||||
|
|
||||||
|
d) Convey the object code by offering access from a designated
|
||||||
|
place (gratis or for a charge), and offer equivalent access to the
|
||||||
|
Corresponding Source in the same way through the same place at no
|
||||||
|
further charge. You need not require recipients to copy the
|
||||||
|
Corresponding Source along with the object code. If the place to
|
||||||
|
copy the object code is a network server, the Corresponding Source
|
||||||
|
may be on a different server (operated by you or a third party)
|
||||||
|
that supports equivalent copying facilities, provided you maintain
|
||||||
|
clear directions next to the object code saying where to find the
|
||||||
|
Corresponding Source. Regardless of what server hosts the
|
||||||
|
Corresponding Source, you remain obligated to ensure that it is
|
||||||
|
available for as long as needed to satisfy these requirements.
|
||||||
|
|
||||||
|
e) Convey the object code using peer-to-peer transmission, provided
|
||||||
|
you inform other peers where the object code and Corresponding
|
||||||
|
Source of the work are being offered to the general public at no
|
||||||
|
charge under subsection 6d.
|
||||||
|
|
||||||
|
A separable portion of the object code, whose source code is excluded
|
||||||
|
from the Corresponding Source as a System Library, need not be
|
||||||
|
included in conveying the object code work.
|
||||||
|
|
||||||
|
A "User Product" is either (1) a "consumer product", which means any
|
||||||
|
tangible personal property which is normally used for personal, family,
|
||||||
|
or household purposes, or (2) anything designed or sold for incorporation
|
||||||
|
into a dwelling. In determining whether a product is a consumer product,
|
||||||
|
doubtful cases shall be resolved in favor of coverage. For a particular
|
||||||
|
product received by a particular user, "normally used" refers to a
|
||||||
|
typical or common use of that class of product, regardless of the status
|
||||||
|
of the particular user or of the way in which the particular user
|
||||||
|
actually uses, or expects or is expected to use, the product. A product
|
||||||
|
is a consumer product regardless of whether the product has substantial
|
||||||
|
commercial, industrial or non-consumer uses, unless such uses represent
|
||||||
|
the only significant mode of use of the product.
|
||||||
|
|
||||||
|
"Installation Information" for a User Product means any methods,
|
||||||
|
procedures, authorization keys, or other information required to install
|
||||||
|
and execute modified versions of a covered work in that User Product from
|
||||||
|
a modified version of its Corresponding Source. The information must
|
||||||
|
suffice to ensure that the continued functioning of the modified object
|
||||||
|
code is in no case prevented or interfered with solely because
|
||||||
|
modification has been made.
|
||||||
|
|
||||||
|
If you convey an object code work under this section in, or with, or
|
||||||
|
specifically for use in, a User Product, and the conveying occurs as
|
||||||
|
part of a transaction in which the right of possession and use of the
|
||||||
|
User Product is transferred to the recipient in perpetuity or for a
|
||||||
|
fixed term (regardless of how the transaction is characterized), the
|
||||||
|
Corresponding Source conveyed under this section must be accompanied
|
||||||
|
by the Installation Information. But this requirement does not apply
|
||||||
|
if neither you nor any third party retains the ability to install
|
||||||
|
modified object code on the User Product (for example, the work has
|
||||||
|
been installed in ROM).
|
||||||
|
|
||||||
|
The requirement to provide Installation Information does not include a
|
||||||
|
requirement to continue to provide support service, warranty, or updates
|
||||||
|
for a work that has been modified or installed by the recipient, or for
|
||||||
|
the User Product in which it has been modified or installed. Access to a
|
||||||
|
network may be denied when the modification itself materially and
|
||||||
|
adversely affects the operation of the network or violates the rules and
|
||||||
|
protocols for communication across the network.
|
||||||
|
|
||||||
|
Corresponding Source conveyed, and Installation Information provided,
|
||||||
|
in accord with this section must be in a format that is publicly
|
||||||
|
documented (and with an implementation available to the public in
|
||||||
|
source code form), and must require no special password or key for
|
||||||
|
unpacking, reading or copying.
|
||||||
|
|
||||||
|
7. Additional Terms.
|
||||||
|
|
||||||
|
"Additional permissions" are terms that supplement the terms of this
|
||||||
|
License by making exceptions from one or more of its conditions.
|
||||||
|
Additional permissions that are applicable to the entire Program shall
|
||||||
|
be treated as though they were included in this License, to the extent
|
||||||
|
that they are valid under applicable law. If additional permissions
|
||||||
|
apply only to part of the Program, that part may be used separately
|
||||||
|
under those permissions, but the entire Program remains governed by
|
||||||
|
this License without regard to the additional permissions.
|
||||||
|
|
||||||
|
When you convey a copy of a covered work, you may at your option
|
||||||
|
remove any additional permissions from that copy, or from any part of
|
||||||
|
it. (Additional permissions may be written to require their own
|
||||||
|
removal in certain cases when you modify the work.) You may place
|
||||||
|
additional permissions on material, added by you to a covered work,
|
||||||
|
for which you have or can give appropriate copyright permission.
|
||||||
|
|
||||||
|
Notwithstanding any other provision of this License, for material you
|
||||||
|
add to a covered work, you may (if authorized by the copyright holders of
|
||||||
|
that material) supplement the terms of this License with terms:
|
||||||
|
|
||||||
|
a) Disclaiming warranty or limiting liability differently from the
|
||||||
|
terms of sections 15 and 16 of this License; or
|
||||||
|
|
||||||
|
b) Requiring preservation of specified reasonable legal notices or
|
||||||
|
author attributions in that material or in the Appropriate Legal
|
||||||
|
Notices displayed by works containing it; or
|
||||||
|
|
||||||
|
c) Prohibiting misrepresentation of the origin of that material, or
|
||||||
|
requiring that modified versions of such material be marked in
|
||||||
|
reasonable ways as different from the original version; or
|
||||||
|
|
||||||
|
d) Limiting the use for publicity purposes of names of licensors or
|
||||||
|
authors of the material; or
|
||||||
|
|
||||||
|
e) Declining to grant rights under trademark law for use of some
|
||||||
|
trade names, trademarks, or service marks; or
|
||||||
|
|
||||||
|
f) Requiring indemnification of licensors and authors of that
|
||||||
|
material by anyone who conveys the material (or modified versions of
|
||||||
|
it) with contractual assumptions of liability to the recipient, for
|
||||||
|
any liability that these contractual assumptions directly impose on
|
||||||
|
those licensors and authors.
|
||||||
|
|
||||||
|
All other non-permissive additional terms are considered "further
|
||||||
|
restrictions" within the meaning of section 10. If the Program as you
|
||||||
|
received it, or any part of it, contains a notice stating that it is
|
||||||
|
governed by this License along with a term that is a further
|
||||||
|
restriction, you may remove that term. If a license document contains
|
||||||
|
a further restriction but permits relicensing or conveying under this
|
||||||
|
License, you may add to a covered work material governed by the terms
|
||||||
|
of that license document, provided that the further restriction does
|
||||||
|
not survive such relicensing or conveying.
|
||||||
|
|
||||||
|
If you add terms to a covered work in accord with this section, you
|
||||||
|
must place, in the relevant source files, a statement of the
|
||||||
|
additional terms that apply to those files, or a notice indicating
|
||||||
|
where to find the applicable terms.
|
||||||
|
|
||||||
|
Additional terms, permissive or non-permissive, may be stated in the
|
||||||
|
form of a separately written license, or stated as exceptions;
|
||||||
|
the above requirements apply either way.
|
||||||
|
|
||||||
|
8. Termination.
|
||||||
|
|
||||||
|
You may not propagate or modify a covered work except as expressly
|
||||||
|
provided under this License. Any attempt otherwise to propagate or
|
||||||
|
modify it is void, and will automatically terminate your rights under
|
||||||
|
this License (including any patent licenses granted under the third
|
||||||
|
paragraph of section 11).
|
||||||
|
|
||||||
|
However, if you cease all violation of this License, then your
|
||||||
|
license from a particular copyright holder is reinstated (a)
|
||||||
|
provisionally, unless and until the copyright holder explicitly and
|
||||||
|
finally terminates your license, and (b) permanently, if the copyright
|
||||||
|
holder fails to notify you of the violation by some reasonable means
|
||||||
|
prior to 60 days after the cessation.
|
||||||
|
|
||||||
|
Moreover, your license from a particular copyright holder is
|
||||||
|
reinstated permanently if the copyright holder notifies you of the
|
||||||
|
violation by some reasonable means, this is the first time you have
|
||||||
|
received notice of violation of this License (for any work) from that
|
||||||
|
copyright holder, and you cure the violation prior to 30 days after
|
||||||
|
your receipt of the notice.
|
||||||
|
|
||||||
|
Termination of your rights under this section does not terminate the
|
||||||
|
licenses of parties who have received copies or rights from you under
|
||||||
|
this License. If your rights have been terminated and not permanently
|
||||||
|
reinstated, you do not qualify to receive new licenses for the same
|
||||||
|
material under section 10.
|
||||||
|
|
||||||
|
9. Acceptance Not Required for Having Copies.
|
||||||
|
|
||||||
|
You are not required to accept this License in order to receive or
|
||||||
|
run a copy of the Program. Ancillary propagation of a covered work
|
||||||
|
occurring solely as a consequence of using peer-to-peer transmission
|
||||||
|
to receive a copy likewise does not require acceptance. However,
|
||||||
|
nothing other than this License grants you permission to propagate or
|
||||||
|
modify any covered work. These actions infringe copyright if you do
|
||||||
|
not accept this License. Therefore, by modifying or propagating a
|
||||||
|
covered work, you indicate your acceptance of this License to do so.
|
||||||
|
|
||||||
|
10. Automatic Licensing of Downstream Recipients.
|
||||||
|
|
||||||
|
Each time you convey a covered work, the recipient automatically
|
||||||
|
receives a license from the original licensors, to run, modify and
|
||||||
|
propagate that work, subject to this License. You are not responsible
|
||||||
|
for enforcing compliance by third parties with this License.
|
||||||
|
|
||||||
|
An "entity transaction" is a transaction transferring control of an
|
||||||
|
organization, or substantially all assets of one, or subdividing an
|
||||||
|
organization, or merging organizations. If propagation of a covered
|
||||||
|
work results from an entity transaction, each party to that
|
||||||
|
transaction who receives a copy of the work also receives whatever
|
||||||
|
licenses to the work the party's predecessor in interest had or could
|
||||||
|
give under the previous paragraph, plus a right to possession of the
|
||||||
|
Corresponding Source of the work from the predecessor in interest, if
|
||||||
|
the predecessor has it or can get it with reasonable efforts.
|
||||||
|
|
||||||
|
You may not impose any further restrictions on the exercise of the
|
||||||
|
rights granted or affirmed under this License. For example, you may
|
||||||
|
not impose a license fee, royalty, or other charge for exercise of
|
||||||
|
rights granted under this License, and you may not initiate litigation
|
||||||
|
(including a cross-claim or counterclaim in a lawsuit) alleging that
|
||||||
|
any patent claim is infringed by making, using, selling, offering for
|
||||||
|
sale, or importing the Program or any portion of it.
|
||||||
|
|
||||||
|
11. Patents.
|
||||||
|
|
||||||
|
A "contributor" is a copyright holder who authorizes use under this
|
||||||
|
License of the Program or a work on which the Program is based. The
|
||||||
|
work thus licensed is called the contributor's "contributor version".
|
||||||
|
|
||||||
|
A contributor's "essential patent claims" are all patent claims
|
||||||
|
owned or controlled by the contributor, whether already acquired or
|
||||||
|
hereafter acquired, that would be infringed by some manner, permitted
|
||||||
|
by this License, of making, using, or selling its contributor version,
|
||||||
|
but do not include claims that would be infringed only as a
|
||||||
|
consequence of further modification of the contributor version. For
|
||||||
|
purposes of this definition, "control" includes the right to grant
|
||||||
|
patent sublicenses in a manner consistent with the requirements of
|
||||||
|
this License.
|
||||||
|
|
||||||
|
Each contributor grants you a non-exclusive, worldwide, royalty-free
|
||||||
|
patent license under the contributor's essential patent claims, to
|
||||||
|
make, use, sell, offer for sale, import and otherwise run, modify and
|
||||||
|
propagate the contents of its contributor version.
|
||||||
|
|
||||||
|
In the following three paragraphs, a "patent license" is any express
|
||||||
|
agreement or commitment, however denominated, not to enforce a patent
|
||||||
|
(such as an express permission to practice a patent or covenant not to
|
||||||
|
sue for patent infringement). To "grant" such a patent license to a
|
||||||
|
party means to make such an agreement or commitment not to enforce a
|
||||||
|
patent against the party.
|
||||||
|
|
||||||
|
If you convey a covered work, knowingly relying on a patent license,
|
||||||
|
and the Corresponding Source of the work is not available for anyone
|
||||||
|
to copy, free of charge and under the terms of this License, through a
|
||||||
|
publicly available network server or other readily accessible means,
|
||||||
|
then you must either (1) cause the Corresponding Source to be so
|
||||||
|
available, or (2) arrange to deprive yourself of the benefit of the
|
||||||
|
patent license for this particular work, or (3) arrange, in a manner
|
||||||
|
consistent with the requirements of this License, to extend the patent
|
||||||
|
license to downstream recipients. "Knowingly relying" means you have
|
||||||
|
actual knowledge that, but for the patent license, your conveying the
|
||||||
|
covered work in a country, or your recipient's use of the covered work
|
||||||
|
in a country, would infringe one or more identifiable patents in that
|
||||||
|
country that you have reason to believe are valid.
|
||||||
|
|
||||||
|
If, pursuant to or in connection with a single transaction or
|
||||||
|
arrangement, you convey, or propagate by procuring conveyance of, a
|
||||||
|
covered work, and grant a patent license to some of the parties
|
||||||
|
receiving the covered work authorizing them to use, propagate, modify
|
||||||
|
or convey a specific copy of the covered work, then the patent license
|
||||||
|
you grant is automatically extended to all recipients of the covered
|
||||||
|
work and works based on it.
|
||||||
|
|
||||||
|
A patent license is "discriminatory" if it does not include within
|
||||||
|
the scope of its coverage, prohibits the exercise of, or is
|
||||||
|
conditioned on the non-exercise of one or more of the rights that are
|
||||||
|
specifically granted under this License. You may not convey a covered
|
||||||
|
work if you are a party to an arrangement with a third party that is
|
||||||
|
in the business of distributing software, under which you make payment
|
||||||
|
to the third party based on the extent of your activity of conveying
|
||||||
|
the work, and under which the third party grants, to any of the
|
||||||
|
parties who would receive the covered work from you, a discriminatory
|
||||||
|
patent license (a) in connection with copies of the covered work
|
||||||
|
conveyed by you (or copies made from those copies), or (b) primarily
|
||||||
|
for and in connection with specific products or compilations that
|
||||||
|
contain the covered work, unless you entered into that arrangement,
|
||||||
|
or that patent license was granted, prior to 28 March 2007.
|
||||||
|
|
||||||
|
Nothing in this License shall be construed as excluding or limiting
|
||||||
|
any implied license or other defenses to infringement that may
|
||||||
|
otherwise be available to you under applicable patent law.
|
||||||
|
|
||||||
|
12. No Surrender of Others' Freedom.
|
||||||
|
|
||||||
|
If conditions are imposed on you (whether by court order, agreement or
|
||||||
|
otherwise) that contradict the conditions of this License, they do not
|
||||||
|
excuse you from the conditions of this License. If you cannot convey a
|
||||||
|
covered work so as to satisfy simultaneously your obligations under this
|
||||||
|
License and any other pertinent obligations, then as a consequence you may
|
||||||
|
not convey it at all. For example, if you agree to terms that obligate you
|
||||||
|
to collect a royalty for further conveying from those to whom you convey
|
||||||
|
the Program, the only way you could satisfy both those terms and this
|
||||||
|
License would be to refrain entirely from conveying the Program.
|
||||||
|
|
||||||
|
13. Use with the GNU Affero General Public License.
|
||||||
|
|
||||||
|
Notwithstanding any other provision of this License, you have
|
||||||
|
permission to link or combine any covered work with a work licensed
|
||||||
|
under version 3 of the GNU Affero General Public License into a single
|
||||||
|
combined work, and to convey the resulting work. The terms of this
|
||||||
|
License will continue to apply to the part which is the covered work,
|
||||||
|
but the special requirements of the GNU Affero General Public License,
|
||||||
|
section 13, concerning interaction through a network will apply to the
|
||||||
|
combination as such.
|
||||||
|
|
||||||
|
14. Revised Versions of this License.
|
||||||
|
|
||||||
|
The Free Software Foundation may publish revised and/or new versions of
|
||||||
|
the GNU General Public License from time to time. Such new versions will
|
||||||
|
be similar in spirit to the present version, but may differ in detail to
|
||||||
|
address new problems or concerns.
|
||||||
|
|
||||||
|
Each version is given a distinguishing version number. If the
|
||||||
|
Program specifies that a certain numbered version of the GNU General
|
||||||
|
Public License "or any later version" applies to it, you have the
|
||||||
|
option of following the terms and conditions either of that numbered
|
||||||
|
version or of any later version published by the Free Software
|
||||||
|
Foundation. If the Program does not specify a version number of the
|
||||||
|
GNU General Public License, you may choose any version ever published
|
||||||
|
by the Free Software Foundation.
|
||||||
|
|
||||||
|
If the Program specifies that a proxy can decide which future
|
||||||
|
versions of the GNU General Public License can be used, that proxy's
|
||||||
|
public statement of acceptance of a version permanently authorizes you
|
||||||
|
to choose that version for the Program.
|
||||||
|
|
||||||
|
Later license versions may give you additional or different
|
||||||
|
permissions. However, no additional obligations are imposed on any
|
||||||
|
author or copyright holder as a result of your choosing to follow a
|
||||||
|
later version.
|
||||||
|
|
||||||
|
15. Disclaimer of Warranty.
|
||||||
|
|
||||||
|
THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
|
||||||
|
APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
|
||||||
|
HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
|
||||||
|
OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
|
||||||
|
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
||||||
|
PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
|
||||||
|
IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
|
||||||
|
ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
|
||||||
|
|
||||||
|
16. Limitation of Liability.
|
||||||
|
|
||||||
|
IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
|
||||||
|
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
|
||||||
|
THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
|
||||||
|
GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
|
||||||
|
USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
|
||||||
|
DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
|
||||||
|
PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
|
||||||
|
EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
|
||||||
|
SUCH DAMAGES.
|
||||||
|
|
||||||
|
17. Interpretation of Sections 15 and 16.
|
||||||
|
|
||||||
|
If the disclaimer of warranty and limitation of liability provided
|
||||||
|
above cannot be given local legal effect according to their terms,
|
||||||
|
reviewing courts shall apply local law that most closely approximates
|
||||||
|
an absolute waiver of all civil liability in connection with the
|
||||||
|
Program, unless a warranty or assumption of liability accompanies a
|
||||||
|
copy of the Program in return for a fee.
|
||||||
|
|
||||||
|
END OF TERMS AND CONDITIONS
|
||||||
|
|
||||||
|
How to Apply These Terms to Your New Programs
|
||||||
|
|
||||||
|
If you develop a new program, and you want it to be of the greatest
|
||||||
|
possible use to the public, the best way to achieve this is to make it
|
||||||
|
free software which everyone can redistribute and change under these terms.
|
||||||
|
|
||||||
|
To do so, attach the following notices to the program. It is safest
|
||||||
|
to attach them to the start of each source file to most effectively
|
||||||
|
state the exclusion of warranty; and each file should have at least
|
||||||
|
the "copyright" line and a pointer to where the full notice is found.
|
||||||
|
|
||||||
|
<one line to give the program's name and a brief idea of what it does.>
|
||||||
|
Copyright (C) <year> <name of author>
|
||||||
|
|
||||||
|
This program is free software: you can redistribute it and/or modify
|
||||||
|
it under the terms of the GNU General Public License as published by
|
||||||
|
the Free Software Foundation, either version 3 of the License, or
|
||||||
|
(at your option) any later version.
|
||||||
|
|
||||||
|
This program is distributed in the hope that it will be useful,
|
||||||
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
GNU General Public License for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU General Public License
|
||||||
|
along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
|
Also add information on how to contact you by electronic and paper mail.
|
||||||
|
|
||||||
|
If the program does terminal interaction, make it output a short
|
||||||
|
notice like this when it starts in an interactive mode:
|
||||||
|
|
||||||
|
<program> Copyright (C) <year> <name of author>
|
||||||
|
This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
|
||||||
|
This is free software, and you are welcome to redistribute it
|
||||||
|
under certain conditions; type `show c' for details.
|
||||||
|
|
||||||
|
The hypothetical commands `show w' and `show c' should show the appropriate
|
||||||
|
parts of the General Public License. Of course, your program's commands
|
||||||
|
might be different; for a GUI interface, you would use an "about box".
|
||||||
|
|
||||||
|
You should also get your employer (if you work as a programmer) or school,
|
||||||
|
if any, to sign a "copyright disclaimer" for the program, if necessary.
|
||||||
|
For more information on this, and how to apply and follow the GNU GPL, see
|
||||||
|
<https://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
|
The GNU General Public License does not permit incorporating your program
|
||||||
|
into proprietary programs. If your program is a subroutine library, you
|
||||||
|
may consider it more useful to permit linking proprietary applications with
|
||||||
|
the library. If this is what you want to do, use the GNU Lesser General
|
||||||
|
Public License instead of this License. But first, please read
|
||||||
|
<https://www.gnu.org/licenses/why-not-lgpl.html>.
|
2
NEWS
Normal file
2
NEWS
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
# Copyright (c) 2024 Freya Murphy <freya@freyacat.org>
|
||||||
|
#+TITLE: NEWS about sakura guix channel
|
4
README.md
Normal file
4
README.md
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
### Sakura
|
||||||
|
|
||||||
|
Sakua is a guix channel that packages things that you may want but guix
|
||||||
|
dosen't have.
|
114
sakura/bootloader/uki.scm
Normal file
114
sakura/bootloader/uki.scm
Normal file
|
@ -0,0 +1,114 @@
|
||||||
|
(define-module (sakura bootloader uki)
|
||||||
|
#:use-module (gnu bootloader)
|
||||||
|
#:use-module (sakura packages bootloaders)
|
||||||
|
#:use-module (gnu packages bootloaders)
|
||||||
|
#:use-module (gnu packages efi)
|
||||||
|
#:use-module (gnu packages linux)
|
||||||
|
#:use-module (guix gexp)
|
||||||
|
#:use-module (guix modules)
|
||||||
|
#:use-module (srfi srfi-1)
|
||||||
|
#:export (uefi-uki-bootloader uefi-uki-signed-bootloader))
|
||||||
|
|
||||||
|
;; config generator makes script creating uki images
|
||||||
|
;; install runs script
|
||||||
|
;; install device is path to uefi dir
|
||||||
|
(define vendor "Guix")
|
||||||
|
(define script-loc "/boot/install-uki.scm")
|
||||||
|
|
||||||
|
(define* (uefi-uki-configuration-file #:optional cert privkey)
|
||||||
|
(lambda* (config entries #:key (old-entries '()) #:allow-other-keys)
|
||||||
|
|
||||||
|
(define (menu-entry->args e)
|
||||||
|
(let* ((boot (bootloader-configuration-bootloader config))
|
||||||
|
(stub (bootloader-package boot)))
|
||||||
|
#~(list "--os-release" #$(menu-entry-label e)
|
||||||
|
"--linux" #$(menu-entry-linux e) "--initrd" #$(menu-entry-initrd e)
|
||||||
|
"--cmdline" (string-join (list #$@(menu-entry-linux-arguments e)))
|
||||||
|
"--stub" #$(file-append stub "/libexec/" (systemd-stub-name))
|
||||||
|
#$@(if cert #~("--secureboot-certificate" #$cert) #~())
|
||||||
|
#$@(if privkey #~("--secureboot-private-key" #$privkey) #~()))))
|
||||||
|
|
||||||
|
(define (enum-filenames . args) ; same args as iota
|
||||||
|
(map (lambda (n) (string-append (number->string n) ".efi"))
|
||||||
|
(apply iota (map length args))))
|
||||||
|
|
||||||
|
(program-file "install-uki"
|
||||||
|
(with-imported-modules (source-module-closure '((guix build syscalls)
|
||||||
|
(guix build utils)))
|
||||||
|
#~(let* ((target (cadr (command-line)))
|
||||||
|
(vendir (string-append target "/EFI/" #$vendor))
|
||||||
|
(schema (string-append vendir "/boot.mgr"))
|
||||||
|
(findmnt #$(file-append util-linux "/bin/findmnt"))
|
||||||
|
(efibootmgr #$(file-append efibootmgr "/sbin/efibootmgr")))
|
||||||
|
(use-modules (guix build syscalls) (guix build utils)
|
||||||
|
(ice-9 popen) (ice-9 textual-ports))
|
||||||
|
|
||||||
|
(define (out name) (string-append vendir "/" name))
|
||||||
|
(define disk
|
||||||
|
(call-with-port
|
||||||
|
(open-pipe* OPEN_READ findmnt "-fnro" "SOURCE" "-T" target)
|
||||||
|
(lambda (port) (get-line port)))) ; only 1 line: the device
|
||||||
|
(define part
|
||||||
|
(substring disk (- (string-length disk) 1)))
|
||||||
|
|
||||||
|
;; delete all boot entries and files we control
|
||||||
|
(when (file-exists? schema)
|
||||||
|
(call-with-input-file schema
|
||||||
|
(lambda (port)
|
||||||
|
(for-each (lambda (l)
|
||||||
|
(unless (string-null? l)
|
||||||
|
(system* efibootmgr "-B" "-L" l "-q")))
|
||||||
|
(string-split (get-string-all port) #\lf)))))
|
||||||
|
(when (directory-exists? vendir) (delete-file-recursively vendir))
|
||||||
|
(mkdir-p vendir)
|
||||||
|
|
||||||
|
(define (install port boot? oos)
|
||||||
|
(lambda (args label name)
|
||||||
|
(let ((minbytes (* 2 (stat:size (stat #$script-loc)))))
|
||||||
|
(put-string port label)
|
||||||
|
(put-char port #\lf)
|
||||||
|
(force-output port) ; make sure space is alloc'd
|
||||||
|
(apply invoke #$(file-append ukify "/bin/ukify")
|
||||||
|
"build" "-o" (out name) args)
|
||||||
|
;; make sure we have enough space for next install-uki.scm
|
||||||
|
(when (and oos (< (free-disk-space vendir) minbytes)) (oos))
|
||||||
|
(invoke efibootmgr (if boot? "-c" "-C") "-L" label "--disk" disk "--part" part
|
||||||
|
"--loader" (string-append "\\EFI\\" #$vendor "\\" name) "-q"))))
|
||||||
|
|
||||||
|
(call-with-output-file schema
|
||||||
|
(lambda (port) ; prioritize latest UKIs in limited ESP space
|
||||||
|
(for-each (install port #t #f)
|
||||||
|
(list #$@(map-in-order menu-entry->args entries))
|
||||||
|
(list #$@(map-in-order menu-entry-label entries))
|
||||||
|
(list #$@(enum-filenames entries)))
|
||||||
|
(for-each ; old-entries can fail (out of space) we don't care
|
||||||
|
(lambda (args label name)
|
||||||
|
(define (cleanup . _) ; do exit early if out of space tho
|
||||||
|
(when (file-exists? (out name)) (delete-file (out name)))
|
||||||
|
(exit))
|
||||||
|
(with-exception-handler cleanup
|
||||||
|
(lambda _ ((install port #f cleanup) args label name))))
|
||||||
|
(list #$@(map-in-order menu-entry->args old-entries))
|
||||||
|
(list #$@(map-in-order menu-entry-label old-entries))
|
||||||
|
(list #$@(enum-filenames old-entries entries))))))))))
|
||||||
|
|
||||||
|
(define install-uefi-uki
|
||||||
|
#~(lambda (bootloader target mount-point)
|
||||||
|
(invoke (string-append mount-point #$script-loc)
|
||||||
|
(string-append mount-point target))))
|
||||||
|
|
||||||
|
(define* (make-uefi-uki-bootloader #:optional cert privkey)
|
||||||
|
(bootloader
|
||||||
|
(name 'uefi-uki)
|
||||||
|
(package systemd-stub)
|
||||||
|
(installer install-uefi-uki)
|
||||||
|
(disk-image-installer #f)
|
||||||
|
(configuration-file script-loc)
|
||||||
|
(configuration-file-generator (uefi-uki-configuration-file cert privkey))))
|
||||||
|
|
||||||
|
;; IMPORTANT NOTE: if bootloader install fails, do not turn off your computer! until
|
||||||
|
;; install succeeds, your system is unbootable.
|
||||||
|
(define uefi-uki-bootloader (make-uefi-uki-bootloader))
|
||||||
|
;; use ukify genkey to generate cert and privkey. DO NOT include in store.
|
||||||
|
(define (uefi-uki-signed-bootloader cert privkey)
|
||||||
|
(make-uefi-uki-bootloader cert privkey))
|
10
sakura/packages.scm
Normal file
10
sakura/packages.scm
Normal file
|
@ -0,0 +1,10 @@
|
||||||
|
(define-module (sakura packages)
|
||||||
|
#:use-module (guix packages)
|
||||||
|
#:use-module (guix utils)
|
||||||
|
#:export (sakura-patches))
|
||||||
|
|
||||||
|
(define-syntax-rule (sakura-patches file-name ...)
|
||||||
|
(list (search-path
|
||||||
|
(map (cut (string-append <> "/sakura/packages/patches")
|
||||||
|
%load-path)
|
||||||
|
file-name)) ...))
|
84
sakura/packages/audio.scm
Normal file
84
sakura/packages/audio.scm
Normal file
|
@ -0,0 +1,84 @@
|
||||||
|
(define-module (sakura packages audio)
|
||||||
|
#:use-module ((guix licenses) #:prefix license:)
|
||||||
|
#:use-module (guix gexp)
|
||||||
|
#:use-module (guix build-system meson)
|
||||||
|
#:use-module (guix packages)
|
||||||
|
#:use-module (guix download)
|
||||||
|
#:use-module (guix utils)
|
||||||
|
#:use-module (gnu packages)
|
||||||
|
#:use-module (gnu packages glib)
|
||||||
|
#:use-module (gnu packages audio)
|
||||||
|
#:use-module (gnu packages pulseaudio)
|
||||||
|
#:use-module (gnu packages gtk)
|
||||||
|
#:use-module (gnu packages xiph)
|
||||||
|
#:use-module (gnu packages tbb)
|
||||||
|
#:use-module (gnu packages gettext)
|
||||||
|
#:use-module (gnu packages gnome)
|
||||||
|
#:use-module (gnu packages gcc)
|
||||||
|
#:use-module (gnu packages pretty-print)
|
||||||
|
#:use-module (gnu packages algebra)
|
||||||
|
#:use-module (gnu packages cpp)
|
||||||
|
#:use-module (gnu packages linux)
|
||||||
|
#:use-module (gnu packages freedesktop)
|
||||||
|
#:use-module (gnu packages cmake)
|
||||||
|
#:use-module (gnu packages maths)
|
||||||
|
#:use-module (gnu packages pkg-config))
|
||||||
|
|
||||||
|
(define-public easyeffects
|
||||||
|
(package
|
||||||
|
(name "easyeffects")
|
||||||
|
(version "7.1.7")
|
||||||
|
(arguments
|
||||||
|
(list
|
||||||
|
#:modules
|
||||||
|
'((guix build utils)
|
||||||
|
(guix build meson-build-system))
|
||||||
|
#:imported-modules
|
||||||
|
(append %meson-build-system-modules)
|
||||||
|
#:tests? #f))
|
||||||
|
(native-inputs (list gettext-minimal
|
||||||
|
itstool
|
||||||
|
desktop-file-utils
|
||||||
|
`(,glib "bin")
|
||||||
|
`(,gtk+ "bin")
|
||||||
|
pkg-config
|
||||||
|
cmake
|
||||||
|
appstream-glib
|
||||||
|
gcc-13))
|
||||||
|
(inputs (list zita-convolver
|
||||||
|
rnnoise
|
||||||
|
tbb
|
||||||
|
fftwf
|
||||||
|
lilv
|
||||||
|
fmt
|
||||||
|
rubberband
|
||||||
|
speexdsp
|
||||||
|
nlohmann-json
|
||||||
|
pipewire
|
||||||
|
libadwaita
|
||||||
|
libsigc++
|
||||||
|
libbs2b
|
||||||
|
libsndfile
|
||||||
|
libsamplerate
|
||||||
|
libebur128
|
||||||
|
libportal
|
||||||
|
gsl
|
||||||
|
speex
|
||||||
|
ladspa
|
||||||
|
soundtouch
|
||||||
|
gcc-13
|
||||||
|
`(,util-linux "lib")))
|
||||||
|
(source (origin
|
||||||
|
(method url-fetch)
|
||||||
|
(uri (string-append "https://github.com/wwmm/easyeffects/archive/refs/tags/v" version
|
||||||
|
".tar.gz"))
|
||||||
|
(sha256
|
||||||
|
(base32
|
||||||
|
"0akk2syckqhn13y7zhgpk2f7pyk09cjv9qcrx2pfba09pzw1z2f3"))))
|
||||||
|
(build-system meson-build-system)
|
||||||
|
(synopsis "Limiter, compressor, convolver, equalizer and auto volume and many other plugins for PipeWire applications")
|
||||||
|
(description "This package provides @code{easyeffects}, which is an audio application for use atop of @code{pipewire}
|
||||||
|
that allows effects that modify sound sources and sinks. This cannot be updated to the latest version (7.0.8) because
|
||||||
|
the packaged version of @code{gtk} is too old.")
|
||||||
|
(home-page "https://github.com/wwmm/easyeffects")
|
||||||
|
(license license:gpl3+)))
|
109
sakura/packages/bootloaders.scm
Normal file
109
sakura/packages/bootloaders.scm
Normal file
|
@ -0,0 +1,109 @@
|
||||||
|
(define-module (sakura packages bootloaders)
|
||||||
|
#:use-module ((guix licenses) #:prefix license:)
|
||||||
|
#:use-module (gnu packages efi)
|
||||||
|
#:use-module (gnu packages base)
|
||||||
|
#:use-module (gnu packages linux)
|
||||||
|
#:use-module (gnu packages gperf)
|
||||||
|
#:use-module (gnu packages crypto)
|
||||||
|
#:use-module (gnu packages python)
|
||||||
|
#:use-module (gnu packages python-xyz)
|
||||||
|
#:use-module (gnu packages python-crypto)
|
||||||
|
#:use-module (gnu packages pkg-config)
|
||||||
|
#:use-module (guix gexp)
|
||||||
|
#:use-module (guix utils)
|
||||||
|
#:use-module (guix modules)
|
||||||
|
#:use-module (guix packages)
|
||||||
|
#:use-module (guix git-download)
|
||||||
|
#:use-module (guix build-system gnu)
|
||||||
|
#:use-module (guix build-system meson)
|
||||||
|
#:use-module (guix build-system python))
|
||||||
|
|
||||||
|
(define systemd-version "255")
|
||||||
|
(define systemd-source
|
||||||
|
(origin
|
||||||
|
(method git-fetch)
|
||||||
|
(uri (git-reference
|
||||||
|
(url "https://github.com/systemd/systemd")
|
||||||
|
(commit (string-append "v" systemd-version))))
|
||||||
|
(file-name (git-file-name "systemd" systemd-version))
|
||||||
|
(sha256
|
||||||
|
(base32
|
||||||
|
"1qdyw9g3jgvsbc1aryr11gpc3075w5pg00mqv4pyf3hwixxkwaq6"))))
|
||||||
|
|
||||||
|
(define-public (systemd-stub-name)
|
||||||
|
(let ((arch (cond ((target-x86-32?) "ia32")
|
||||||
|
((target-x86-64?) "x64")
|
||||||
|
((target-arm32?) "arm")
|
||||||
|
((target-aarch64?) "aa64")
|
||||||
|
((target-riscv64?) "riscv64"))))
|
||||||
|
(string-append "linux" arch ".efi.stub")))
|
||||||
|
|
||||||
|
(define-public systemd-stub
|
||||||
|
(package
|
||||||
|
(name "systemd-stub")
|
||||||
|
(version systemd-version)
|
||||||
|
(source systemd-source)
|
||||||
|
(build-system meson-build-system)
|
||||||
|
(arguments
|
||||||
|
(list
|
||||||
|
#:configure-flags
|
||||||
|
`(list "-Defi=true" "-Dsbat-distro=guix"
|
||||||
|
"-Dsbat-distro-generation=1" ; package revision!
|
||||||
|
"-Dsbat-distro-summary=Guix System"
|
||||||
|
"-Dsbat-distro-url=https://guix.gnu.org"
|
||||||
|
,(string-append "-Dsbat-distro-pkgname=" name)
|
||||||
|
,(string-append "-Dsbat-distro-version=" version))
|
||||||
|
#:phases
|
||||||
|
#~(let ((stub #$(string-append "src/boot/efi/" (systemd-stub-name))))
|
||||||
|
(modify-phases %standard-phases
|
||||||
|
(replace 'build
|
||||||
|
(lambda* (#:key parallel-build? #:allow-other-keys)
|
||||||
|
(invoke "ninja" stub
|
||||||
|
"-j" (if parallel-build?
|
||||||
|
(number->string (parallel-job-count)) "1"))))
|
||||||
|
(replace 'install
|
||||||
|
(lambda _
|
||||||
|
(install-file stub (string-append #$output "/libexec"))))
|
||||||
|
(delete 'check)))))
|
||||||
|
(inputs (list libcap python-pyelftools `(,util-linux "lib")))
|
||||||
|
(native-inputs (list libxcrypt gperf pkg-config python-3 python-jinja2))
|
||||||
|
(home-page "https://systemd.io")
|
||||||
|
(synopsis "Unified kernel image UEFI stub")
|
||||||
|
(description "Simple UEFi boot stub that loads a conjoined kernel image and
|
||||||
|
supporting data to their proper locations, before chainloading to the kernel.
|
||||||
|
Supports measured and/or verified boot environments.")
|
||||||
|
(license license:lgpl2.1+)))
|
||||||
|
|
||||||
|
(define-public ukify
|
||||||
|
(package
|
||||||
|
(name "ukify")
|
||||||
|
(version systemd-version)
|
||||||
|
(source systemd-source)
|
||||||
|
(build-system python-build-system)
|
||||||
|
(arguments
|
||||||
|
(list #:phases
|
||||||
|
#~(modify-phases %standard-phases
|
||||||
|
(replace 'build
|
||||||
|
(lambda _
|
||||||
|
(substitute* "src/ukify/ukify.py" ; added in python 3.11
|
||||||
|
(("datetime\\.UTC") "datetime.timezone.utc"))))
|
||||||
|
(delete 'check)
|
||||||
|
(replace 'install
|
||||||
|
(lambda* (#:key inputs #:allow-other-keys)
|
||||||
|
(let* ((bin (string-append #$output "/bin"))
|
||||||
|
(file (string-append bin "/ukify"))
|
||||||
|
(binutils (assoc-ref inputs "binutils"))
|
||||||
|
(sbsign (assoc-ref inputs "sbsigntools")))
|
||||||
|
(mkdir-p bin)
|
||||||
|
(copy-file "src/ukify/ukify.py" file)
|
||||||
|
(wrap-program file
|
||||||
|
`("PATH" ":" prefix
|
||||||
|
(,(string-append binutils "/bin")
|
||||||
|
,(string-append sbsign "/bin"))))))))))
|
||||||
|
(inputs (list binutils python-cryptography python-pefile sbsigntools))
|
||||||
|
(home-page "https://systemd.io")
|
||||||
|
(synopsis "Unified kernel image UEFI tool")
|
||||||
|
(description "@command{ukify} joins together a UKI stub, linux kernel, initrd,
|
||||||
|
kernel arguments, and optional secure boot signatures into a single, UEFI-bootable
|
||||||
|
image.")
|
||||||
|
(license license:lgpl2.1+)))
|
181
sakura/packages/crates-io.scm
Normal file
181
sakura/packages/crates-io.scm
Normal file
|
@ -0,0 +1,181 @@
|
||||||
|
(define-module (sakura packages crates-io)
|
||||||
|
#:use-module ((guix licenses) #:prefix license:)
|
||||||
|
#:use-module (guix gexp)
|
||||||
|
#:use-module (guix packages)
|
||||||
|
#:use-module (guix download)
|
||||||
|
#:use-module (guix build-system cargo)
|
||||||
|
#:use-module (gnu packages)
|
||||||
|
#:use-module (gnu packages crates-io)
|
||||||
|
#:use-module (sakura packages linux)
|
||||||
|
#:use-module (guix utils))
|
||||||
|
|
||||||
|
|
||||||
|
(define-public rust-synstructure-0.13
|
||||||
|
(package
|
||||||
|
(inherit rust-synstructure-0.12)
|
||||||
|
(name "rust-synstructure")
|
||||||
|
(version "0.13.0")
|
||||||
|
(source
|
||||||
|
(origin
|
||||||
|
(method url-fetch)
|
||||||
|
(uri (crate-uri "synstructure" version))
|
||||||
|
(file-name (string-append name "-" version ".tar.gz"))
|
||||||
|
(modules '((guix build utils)))
|
||||||
|
(sha256
|
||||||
|
(base32
|
||||||
|
"01jvj55fxgqa69sp1j9mma09p9vj6zwcvyvh8am81b1zfc7ahnr8"))))))
|
||||||
|
|
||||||
|
|
||||||
|
(define-public rust-libc-0.2.155
|
||||||
|
(package
|
||||||
|
(inherit rust-libc-0.2)
|
||||||
|
(name "rust-libc")
|
||||||
|
(version "0.2.155")
|
||||||
|
(source
|
||||||
|
(origin
|
||||||
|
(method url-fetch)
|
||||||
|
(uri (crate-uri "libc" version))
|
||||||
|
(file-name (string-append name "-" version ".tar.gz"))
|
||||||
|
(modules '((guix build utils)))
|
||||||
|
(sha256
|
||||||
|
(base32
|
||||||
|
"0z44c53z54znna8n322k5iwg80arxxpdzjj5260pxxzc9a58icwp"))))))
|
||||||
|
|
||||||
|
|
||||||
|
(define-public rust-cfg-aliases-0.2
|
||||||
|
(package
|
||||||
|
(inherit rust-cfg-aliases-0.1)
|
||||||
|
(name "rust-cfg-aliases")
|
||||||
|
(version "0.2.1")
|
||||||
|
(source
|
||||||
|
(origin
|
||||||
|
(method url-fetch)
|
||||||
|
(uri (crate-uri "cfg_aliases" version))
|
||||||
|
(file-name (string-append name "-" version ".tar.gz"))
|
||||||
|
(modules '((guix build utils)))
|
||||||
|
(sha256
|
||||||
|
(base32
|
||||||
|
"092pxdc1dbgjb6qvh83gk56rkic2n2ybm4yvy76cgynmzi3zwfk1"))))))
|
||||||
|
|
||||||
|
|
||||||
|
(define-public rust-nix-0.29
|
||||||
|
(package
|
||||||
|
(inherit rust-nix-0.28)
|
||||||
|
(name "rust-nix")
|
||||||
|
(version "0.29.0")
|
||||||
|
(source
|
||||||
|
(origin
|
||||||
|
(method url-fetch)
|
||||||
|
(uri (crate-uri "nix" version))
|
||||||
|
(file-name (string-append name "-" version ".tar.gz"))
|
||||||
|
(modules '((guix build utils)))
|
||||||
|
(sha256
|
||||||
|
(base32
|
||||||
|
"0ikvn7s9r2lrfdm3mx1h7nbfjvcc6s9vxdzw7j5xfkd2qdnp9qki"))))
|
||||||
|
(arguments
|
||||||
|
(substitute-keyword-arguments (package-arguments rust-nix-0.28)
|
||||||
|
((#:cargo-inputs inputs ''())
|
||||||
|
`(("rust-bitflags" ,rust-bitflags-2)
|
||||||
|
("rust-cfg-if" ,rust-cfg-if-1)
|
||||||
|
("rust-cfg-aliases" ,rust-cfg-aliases-0.2)
|
||||||
|
("rust-libc" ,rust-libc-0.2.155)
|
||||||
|
("rust-memoffset" ,rust-memoffset-0.9)
|
||||||
|
("rust-pin-utils" ,rust-pin-utils-0.1)))))))
|
||||||
|
|
||||||
|
|
||||||
|
(define-public rust-custom-debug-derive-0.6
|
||||||
|
(package
|
||||||
|
(name "rust-custom-debug-derive")
|
||||||
|
(version "0.6.1")
|
||||||
|
(source
|
||||||
|
(origin
|
||||||
|
(method url-fetch)
|
||||||
|
(uri (crate-uri "custom_debug_derive" version))
|
||||||
|
(file-name (string-append name "-" version ".tar.gz"))
|
||||||
|
(modules '((guix build utils)))
|
||||||
|
(sha256
|
||||||
|
(base32
|
||||||
|
"0sagiyiw5h0yi0wmc8dgqyrk4xy9zb0mwinbagi10ff7745l8cgp"))))
|
||||||
|
(build-system cargo-build-system)
|
||||||
|
(arguments
|
||||||
|
`(#:tests? #f
|
||||||
|
#:cargo-inputs (("rust-darling" ,rust-darling-0.20)
|
||||||
|
("rust-itertools" ,rust-itertools-0.12)
|
||||||
|
("rust-proc-macro2" ,rust-proc-macro2-1)
|
||||||
|
("rust-quote-1" ,rust-quote-1)
|
||||||
|
("rust-syn" ,rust-syn-2)
|
||||||
|
("rust-synstructure" ,rust-synstructure-0.13))))
|
||||||
|
(home-page "https://github.com/panicbit/custom_debug")
|
||||||
|
(synopsis "Derive Debug with a custom format per field")
|
||||||
|
(description "todo")
|
||||||
|
(license license:expat)))
|
||||||
|
|
||||||
|
|
||||||
|
(define-public rust-custom-debug-0.6
|
||||||
|
(package
|
||||||
|
(name "rust-custom-debug")
|
||||||
|
(version "0.6.1")
|
||||||
|
(source
|
||||||
|
(origin
|
||||||
|
(method url-fetch)
|
||||||
|
(uri (crate-uri "custom_debug" version))
|
||||||
|
(file-name (string-append name "-" version ".tar.gz"))
|
||||||
|
(sha256
|
||||||
|
(base32
|
||||||
|
"0mnj2k1k1mjg34f2zcyyiqp205fjkpim5h3nf2f90gjh1szibrql"))))
|
||||||
|
(build-system cargo-build-system)
|
||||||
|
(arguments
|
||||||
|
`(#:tests? #f
|
||||||
|
#:cargo-inputs (("rust-custom-debug-derive" ,rust-custom-debug-derive-0.6))))
|
||||||
|
(home-page "https://github.com/panicbit/custom_debug")
|
||||||
|
(synopsis "Derive Debug with a custom format per field")
|
||||||
|
(description "todo")
|
||||||
|
(license license:expat)))
|
||||||
|
|
||||||
|
|
||||||
|
(define-public rust-bluer-0.17
|
||||||
|
(package
|
||||||
|
(name "rust-bluer")
|
||||||
|
(version "0.17.3")
|
||||||
|
(source
|
||||||
|
(origin
|
||||||
|
(method url-fetch)
|
||||||
|
(uri (crate-uri "bluer" version))
|
||||||
|
(file-name (string-append name "-" version ".tar.gz"))
|
||||||
|
(sha256
|
||||||
|
(base32
|
||||||
|
"1ysgxnkijfly78kf9rxg827a9qbndpfdc65cndybc51cv1f6mvz9"))))
|
||||||
|
(build-system cargo-build-system)
|
||||||
|
(arguments
|
||||||
|
`(#:tests? #f
|
||||||
|
#:cargo-inputs (("rust-futures" ,rust-futures-0.3)
|
||||||
|
("rust-hex" ,rust-hex-0.4)
|
||||||
|
("rust-libc" ,rust-libc-0.2)
|
||||||
|
("rust-log" ,rust-log-0.4)
|
||||||
|
("rust-macaddr" ,rust-macaddr-1)
|
||||||
|
("rust-nix" ,rust-nix-0.29)
|
||||||
|
("rust-num-derive" ,rust-num-derive-0.4)
|
||||||
|
("rust-num-traits" ,rust-num-traits-0.2)
|
||||||
|
("rust-strum" ,rust-strum-0.26)
|
||||||
|
("rust-tokio" ,rust-tokio-1)
|
||||||
|
("rust-uuid" ,rust-uuid-1)
|
||||||
|
("rust-custom-debug" ,rust-custom-debug-0.6)
|
||||||
|
("rust-dbus" ,rust-dbus-0.9)
|
||||||
|
("rust-dbus-crossroads" ,rust-dbus-crossroads-0.5)
|
||||||
|
("rust-dbus-tokio" ,rust-dbus-tokio-0.7)
|
||||||
|
("rust-displaydoc" ,rust-displaydoc-0.2)
|
||||||
|
("rust-lazy-static" ,rust-lazy-static-1)
|
||||||
|
("rust-pin-project" ,rust-pin-project-1)
|
||||||
|
("rust-serde" ,rust-serde-1)
|
||||||
|
("rust-serde-json" ,rust-serde-json-1)
|
||||||
|
("rust-tokio-stream" ,rust-tokio-stream-0.1))
|
||||||
|
#:cargo-development-inputs (("rust-clap" ,rust-clap-4)
|
||||||
|
("rust-env-logger" ,rust-env-logger-0.11)
|
||||||
|
("rust-rand" ,rust-rand-0.8)
|
||||||
|
("rust-tokio" ,rust-tokio-1))))
|
||||||
|
(inputs
|
||||||
|
(list bluez-new))
|
||||||
|
(home-page "https://github.com/bluez/bluer")
|
||||||
|
(synopsis "Official Rust interface to the Linux Bluetooth protocol stack (BlueZ)")
|
||||||
|
(description "todo")
|
||||||
|
(license license:bsd-2)))
|
147
sakura/packages/gnome-xyz.scm
Normal file
147
sakura/packages/gnome-xyz.scm
Normal file
|
@ -0,0 +1,147 @@
|
||||||
|
(define-module (sakura packages gnome-xyz)
|
||||||
|
#:use-module ((guix licenses) #:prefix license:)
|
||||||
|
#:use-module (guix gexp)
|
||||||
|
#:use-module (gnu packages)
|
||||||
|
#:use-module (gnu packages base)
|
||||||
|
#:use-module (gnu packages version-control)
|
||||||
|
#:use-module (gnu packages web)
|
||||||
|
#:use-module (gnu packages bash)
|
||||||
|
#:use-module (gnu packages compression)
|
||||||
|
#:use-module (gnu packages gnome-xyz)
|
||||||
|
#:use-module (guix packages)
|
||||||
|
#:use-module (guix git-download)
|
||||||
|
#:use-module (guix download)
|
||||||
|
#:use-module (guix build-system trivial)
|
||||||
|
#:use-module (guix utils))
|
||||||
|
|
||||||
|
|
||||||
|
(define-public lavanda-gtk-theme
|
||||||
|
(let ((commit "44c74ad34d272e07b91f779e62e63b6ef8645655"))
|
||||||
|
(package
|
||||||
|
(name "lavanda-gtk-theme")
|
||||||
|
(version (git-version "" "0" commit))
|
||||||
|
(source
|
||||||
|
(origin
|
||||||
|
(method git-fetch)
|
||||||
|
(uri (git-reference
|
||||||
|
(url "https://github.com/vinceliuice/Lavanda-gtk-theme.git")
|
||||||
|
(commit commit)))
|
||||||
|
(sha256
|
||||||
|
(base32
|
||||||
|
"1q253kl5lw9dpbmwaf715brdjka7b3s3kpl4i6s262dji84pp3dc"))
|
||||||
|
(file-name (git-file-name name version))))
|
||||||
|
(build-system trivial-build-system)
|
||||||
|
(inputs
|
||||||
|
`(("sassc" ,sassc)
|
||||||
|
("coreutils" ,coreutils)
|
||||||
|
("sed" ,sed)
|
||||||
|
("bash" ,bash)))
|
||||||
|
(arguments
|
||||||
|
'(#:modules ((guix build utils))
|
||||||
|
#:builder
|
||||||
|
(begin
|
||||||
|
(use-modules (guix build utils))
|
||||||
|
(let* ((out (assoc-ref %outputs "out"))
|
||||||
|
(bin (string-append out "/share/themes"))
|
||||||
|
(bash (string-append
|
||||||
|
(assoc-ref %build-inputs "bash")
|
||||||
|
"/bin/sh"))
|
||||||
|
(coreutils (string-append
|
||||||
|
(assoc-ref %build-inputs "coreutils")
|
||||||
|
"/bin"))
|
||||||
|
(sed (string-append
|
||||||
|
(assoc-ref %build-inputs "sed")
|
||||||
|
"/bin"))
|
||||||
|
(sassc (string-append
|
||||||
|
(assoc-ref %build-inputs "sassc")
|
||||||
|
"/bin"))
|
||||||
|
(source (assoc-ref %build-inputs "source")))
|
||||||
|
(copy-recursively source (getcwd))
|
||||||
|
(setenv "PATH" (string-append (getenv "PATH") ":" coreutils ":" sed ":" sassc))
|
||||||
|
(mkdir-p bin)
|
||||||
|
(invoke bash "build.sh")
|
||||||
|
(invoke bash "install.sh" "-d" bin)))))
|
||||||
|
(home-page "https://github.com/vinceliuice/Lavanda-gtk-theme")
|
||||||
|
(synopsis "Lavanda gtk theme for linux desktops")
|
||||||
|
(description "Lavanda gtk theme for linux desktops")
|
||||||
|
(license license:gpl3))))
|
||||||
|
|
||||||
|
|
||||||
|
(define-public mint-themes
|
||||||
|
(package
|
||||||
|
(name "mint-themes")
|
||||||
|
(version "2.1.8")
|
||||||
|
(source
|
||||||
|
(origin
|
||||||
|
(method url-fetch)
|
||||||
|
(uri (string-append "http://packages.linuxmint.com/pool/main/m/mint-themes/mint-themes_"
|
||||||
|
version "_all.deb"))
|
||||||
|
(sha256
|
||||||
|
(base32
|
||||||
|
"0a1j566a0p0nxmzil5z6qidzqd9dal1r5lv90x2v5s2slm162f3a"))
|
||||||
|
(file-name "source.deb")))
|
||||||
|
(build-system trivial-build-system)
|
||||||
|
(native-inputs
|
||||||
|
(list binutils
|
||||||
|
tar
|
||||||
|
xz))
|
||||||
|
(arguments
|
||||||
|
'(#:modules ((guix build utils))
|
||||||
|
#:builder
|
||||||
|
(begin
|
||||||
|
(use-modules (guix build utils))
|
||||||
|
(let* ((source (assoc-ref %build-inputs "source"))
|
||||||
|
(bin (string-append
|
||||||
|
(assoc-ref %outputs "out")
|
||||||
|
"/share/themes"))
|
||||||
|
(cwd (getcwd))
|
||||||
|
(deb (string-append cwd
|
||||||
|
"/source.deb"))
|
||||||
|
(data (string-append cwd
|
||||||
|
"/data.tar.xz"))
|
||||||
|
(themes (string-append cwd
|
||||||
|
"/usr/share/themes"))
|
||||||
|
(ar (string-append
|
||||||
|
(assoc-ref %build-inputs "binutils")
|
||||||
|
"/bin/ar"))
|
||||||
|
(tar (string-append
|
||||||
|
(assoc-ref %build-inputs "tar")
|
||||||
|
"/bin/tar"))
|
||||||
|
(xz-bin (string-append
|
||||||
|
(assoc-ref %build-inputs "xz")
|
||||||
|
"/bin")))
|
||||||
|
(setenv "PATH" (string-append (getenv "PATH") ":" xz-bin))
|
||||||
|
(copy-file source deb)
|
||||||
|
(invoke ar "x" deb "--output" cwd)
|
||||||
|
(invoke tar "xf" data "-C" cwd)
|
||||||
|
(mkdir-p bin)
|
||||||
|
(copy-recursively themes bin)))))
|
||||||
|
(home-page "https://github.com/linuxmint/mint-themes")
|
||||||
|
(synopsis "A collection of Mint themes.")
|
||||||
|
(description "A collection of Mint themes.")
|
||||||
|
(license license:gpl3+)))
|
||||||
|
|
||||||
|
|
||||||
|
(define-public orchis-theme-2024
|
||||||
|
(package
|
||||||
|
(inherit orchis-theme)
|
||||||
|
(name "orchis-theme")
|
||||||
|
(version "2024-05-30")
|
||||||
|
(source
|
||||||
|
(origin
|
||||||
|
(method git-fetch)
|
||||||
|
(uri
|
||||||
|
(git-reference
|
||||||
|
(url "https://github.com/vinceliuice/Orchis-theme")
|
||||||
|
(commit version)))
|
||||||
|
(file-name (git-file-name name version))
|
||||||
|
(sha256
|
||||||
|
(base32
|
||||||
|
"1qjw54wfi8f39cc6l53h2rx9sy3048r4jf21w18xp88ilznnv5qf"))))
|
||||||
|
(arguments
|
||||||
|
(substitute-keyword-arguments (package-arguments orchis-theme)
|
||||||
|
((#:configure-flags flags ''())
|
||||||
|
#~(list "--dest" (string-append
|
||||||
|
(assoc-ref %outputs "out")
|
||||||
|
"/share/themes")
|
||||||
|
"--theme" "all"))))))
|
791
sakura/packages/hypr.scm
Normal file
791
sakura/packages/hypr.scm
Normal file
|
@ -0,0 +1,791 @@
|
||||||
|
(define-module (sakura packages hypr)
|
||||||
|
#:use-module ((guix licenses) #:prefix license:)
|
||||||
|
#:use-module (gnu packages)
|
||||||
|
#:use-module (gnu packages wm)
|
||||||
|
#:use-module (gnu packages freedesktop)
|
||||||
|
#:use-module (gnu packages cpp)
|
||||||
|
#:use-module (gnu packages check)
|
||||||
|
#:use-module (gnu packages gcc)
|
||||||
|
#:use-module (gnu packages build-tools)
|
||||||
|
#:use-module (gnu packages pkg-config)
|
||||||
|
#:use-module (gnu packages xdisorg)
|
||||||
|
#:use-module (gnu packages compression)
|
||||||
|
#:use-module (gnu packages gtk)
|
||||||
|
#:use-module (gnu packages gl)
|
||||||
|
#:use-module (gnu packages linux)
|
||||||
|
#:use-module (gnu packages gnome)
|
||||||
|
#:use-module (gnu packages pciutils)
|
||||||
|
#:use-module (gnu packages image)
|
||||||
|
#:use-module (gnu packages xml)
|
||||||
|
#:use-module (gnu packages web)
|
||||||
|
#:use-module (gnu packages version-control)
|
||||||
|
#:use-module (gnu packages python)
|
||||||
|
#:use-module (gnu packages autotools)
|
||||||
|
#:use-module (gnu packages xorg)
|
||||||
|
#:use-module (gnu packages freedesktop)
|
||||||
|
#:use-module (gnu packages base)
|
||||||
|
#:use-module (gnu packages bash)
|
||||||
|
#:use-module (gnu packages man)
|
||||||
|
#:use-module (gnu packages qt)
|
||||||
|
#:use-module (gnu packages cmake)
|
||||||
|
#:use-module (gnu packages admin)
|
||||||
|
#:use-module (gnu packages glib)
|
||||||
|
#:use-module (guix download)
|
||||||
|
#:use-module (guix packages)
|
||||||
|
#:use-module (guix gexp)
|
||||||
|
#:use-module (guix git-download)
|
||||||
|
#:use-module (guix build-system cmake)
|
||||||
|
#:use-module (guix build-system meson)
|
||||||
|
#:use-module (guix build-system trivial)
|
||||||
|
#:use-module (guix build-system gnu)
|
||||||
|
#:use-module (guix build utils)
|
||||||
|
#:use-module (sakura packages)
|
||||||
|
#:use-module (sakura packages linux)
|
||||||
|
#:use-module (guix utils))
|
||||||
|
|
||||||
|
|
||||||
|
;; Newer packages needed for Hyprland
|
||||||
|
;;
|
||||||
|
;; - libinput
|
||||||
|
;; - wayland
|
||||||
|
;; - hwdata
|
||||||
|
;; - udis86
|
||||||
|
;; - xorg headers
|
||||||
|
;; - mesa libglvnd
|
||||||
|
|
||||||
|
|
||||||
|
(define-public libinput-minimal-for-hyprland
|
||||||
|
(hidden-package (package
|
||||||
|
(inherit libinput-minimal)
|
||||||
|
(name "libinput-minimal")
|
||||||
|
(version "1.26.1")
|
||||||
|
(source (origin
|
||||||
|
(method git-fetch)
|
||||||
|
(uri (git-reference
|
||||||
|
(url "https://gitlab.freedesktop.org/libinput/libinput.git")
|
||||||
|
(commit version)))
|
||||||
|
(file-name (git-file-name name version))
|
||||||
|
(sha256
|
||||||
|
(base32
|
||||||
|
"094k23i10jjmgdzhv5lj7xpc3fgkwi9afcihf0l2fjj71ym8l9fy"))))
|
||||||
|
(native-inputs
|
||||||
|
(modify-inputs (package-native-inputs libinput)
|
||||||
|
(append python-minimal-wrapper python-pytest))))))
|
||||||
|
|
||||||
|
|
||||||
|
(define-public wayland-for-hyprland
|
||||||
|
(hidden-package (package
|
||||||
|
(inherit wayland)
|
||||||
|
(name "wayland")
|
||||||
|
(version "1.23.1")
|
||||||
|
(source (origin
|
||||||
|
(method url-fetch)
|
||||||
|
(uri (string-append "https://gitlab.freedesktop.org/" name
|
||||||
|
"/" name "/-/releases/" version "/downloads/"
|
||||||
|
name "-" version ".tar.xz"))
|
||||||
|
(sha256
|
||||||
|
(base32
|
||||||
|
"1vg5h6d94hglh7724q6wx9dpg4y0afvxksankp1hwbcy76lb4kw6")))))))
|
||||||
|
|
||||||
|
|
||||||
|
(define-public hwdata-for-hyprland
|
||||||
|
(hidden-package (package
|
||||||
|
(inherit hwdata)
|
||||||
|
(arguments
|
||||||
|
(substitute-keyword-arguments (package-arguments hwdata)
|
||||||
|
((#:phases _) #~%standard-phases)))
|
||||||
|
(outputs '("out")))))
|
||||||
|
|
||||||
|
|
||||||
|
(define-public udis86-for-hyprland
|
||||||
|
(let ((revision "186")
|
||||||
|
(commit "5336633af70f3917760a6d441ff02d93477b0c86"))
|
||||||
|
(hidden-package (package
|
||||||
|
(name "udis86")
|
||||||
|
(version (git-version "1.7.2" revision commit))
|
||||||
|
(source (origin
|
||||||
|
(method git-fetch)
|
||||||
|
(uri (git-reference
|
||||||
|
(url "https://github.com/canihavesomecoffee/udis86")
|
||||||
|
(commit commit)))
|
||||||
|
(file-name (git-file-name name version))
|
||||||
|
(sha256
|
||||||
|
(base32
|
||||||
|
"0y5z1169wff578jylpafsww4px4y6gickhcs885a9c660d8xs9qy"))))
|
||||||
|
(build-system gnu-build-system)
|
||||||
|
(native-inputs (list autoconf automake libtool python-minimal-wrapper))
|
||||||
|
(home-page "https://github.com/canihavesomecoffee/udis86")
|
||||||
|
(synopsis "Disassembler Library for x86 and x86-64")
|
||||||
|
(description
|
||||||
|
"Udis86 is a disassembler for the x86 and x86-64 class of instruction
|
||||||
|
set architectures. It consists of a C library called @code{libudis86} and a
|
||||||
|
command line tool called @code{udcli} that incorporates the library.")
|
||||||
|
(license license:bsd-2)))))
|
||||||
|
|
||||||
|
|
||||||
|
(define-public xorg-server-xwayland-for-hyprland
|
||||||
|
(hidden-package (package
|
||||||
|
(inherit xorg-server-xwayland)
|
||||||
|
(arguments
|
||||||
|
(substitute-keyword-arguments (package-arguments xorg-server-xwayland)
|
||||||
|
((#:phases phases)
|
||||||
|
#~(modify-phases #$phases
|
||||||
|
(add-after 'install 'install-headers
|
||||||
|
(lambda _
|
||||||
|
(let ((fmw (string-append #$output "/include")))
|
||||||
|
(mkdir-p fmw)
|
||||||
|
(copy-recursively "include" fmw))
|
||||||
|
))
|
||||||
|
)))))))
|
||||||
|
|
||||||
|
|
||||||
|
(define-public mesa-for-hyprland
|
||||||
|
(hidden-package (package
|
||||||
|
(inherit mesa)
|
||||||
|
(inputs
|
||||||
|
(modify-inputs
|
||||||
|
(package-inputs mesa)
|
||||||
|
(prepend libglvnd)))
|
||||||
|
(arguments
|
||||||
|
(substitute-keyword-arguments (package-arguments mesa)
|
||||||
|
((#:configure-flags flags ''())
|
||||||
|
#~(append (list "-Dglvnd=true")
|
||||||
|
#$flags)))))))
|
||||||
|
|
||||||
|
|
||||||
|
;; Hyprland Packages
|
||||||
|
|
||||||
|
|
||||||
|
(define-public hyprland-protocols
|
||||||
|
(package
|
||||||
|
(name "hyprland-protocols")
|
||||||
|
(version "0.4.0")
|
||||||
|
(source (origin
|
||||||
|
(method git-fetch)
|
||||||
|
(uri (git-reference
|
||||||
|
(url "https://github.com/hyprwm/hyprland-protocols")
|
||||||
|
(commit (string-append "v" version))))
|
||||||
|
(file-name (git-file-name name version))
|
||||||
|
(sha256
|
||||||
|
(base32
|
||||||
|
"0x86w7z3415qvixfhk9a8v5fnbnxdydzx366qz0mpmfg5h86qyha"))))
|
||||||
|
(build-system meson-build-system)
|
||||||
|
(home-page "https://hyprland.org")
|
||||||
|
(synopsis "Wayland protocol extensions for Hyprland")
|
||||||
|
(description
|
||||||
|
"This package provides Wayland protocol extensions for Hyprland and it
|
||||||
|
exists in an effort to bridge the gap between Hyprland and KDE/Gnome's
|
||||||
|
functionality. Since @code{wlr-protocols} is closed for new submissions, and
|
||||||
|
@code{wayland-protocols} is very slow with changes, this package will hold
|
||||||
|
protocols used by Hyprland to bridge the aforementioned gap.")
|
||||||
|
(license license:bsd-3)))
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
;; Common Packages needed by
|
||||||
|
;; multiple hyprland packages
|
||||||
|
|
||||||
|
(define hyprwayland-common
|
||||||
|
(list ; libs
|
||||||
|
cairo
|
||||||
|
pango
|
||||||
|
; mesa
|
||||||
|
mesa-for-hyprland
|
||||||
|
libglvnd
|
||||||
|
; wayland
|
||||||
|
wayland-for-hyprland
|
||||||
|
wayland-protocols-next
|
||||||
|
hyprland-protocols))
|
||||||
|
|
||||||
|
;; Common Packages needed by
|
||||||
|
;; aquamarine and any package
|
||||||
|
;; that uses it
|
||||||
|
|
||||||
|
(define aquamarine-common
|
||||||
|
(append hyprwayland-common
|
||||||
|
(list ; lib
|
||||||
|
libseat
|
||||||
|
pixman
|
||||||
|
libinput-minimal-for-hyprland
|
||||||
|
; x11
|
||||||
|
libdisplay-info
|
||||||
|
libxcb
|
||||||
|
libxinerama
|
||||||
|
libxcursor
|
||||||
|
libxkbcommon
|
||||||
|
xcb-util
|
||||||
|
xcb-util-errors
|
||||||
|
xcb-util-keysyms
|
||||||
|
xcb-util-wm)))
|
||||||
|
|
||||||
|
|
||||||
|
(define-public hyprlang
|
||||||
|
(package
|
||||||
|
(name "hyprlang")
|
||||||
|
(version "0.5.3")
|
||||||
|
(source (origin
|
||||||
|
(method git-fetch)
|
||||||
|
(uri (git-reference
|
||||||
|
(url "https://github.com/hyprwm/hyprlang")
|
||||||
|
(commit (string-append "v" version))))
|
||||||
|
(file-name (git-file-name name version))
|
||||||
|
(sha256
|
||||||
|
(base32
|
||||||
|
"0yvfrz3hdyxzhngzhr0bgc5279ra5fv01hbfi6pdj84pz0lpaw02"))))
|
||||||
|
(build-system cmake-build-system)
|
||||||
|
(native-inputs (list gcc-13
|
||||||
|
pkg-config))
|
||||||
|
(inputs (list hyprutils))
|
||||||
|
(home-page "https://hyprland.org/hyprlang/")
|
||||||
|
(synopsis "Official implementation library for hypr config language")
|
||||||
|
(description
|
||||||
|
"This package provides the official implementation for hypr configuration
|
||||||
|
language used in @code{hyprland}.")
|
||||||
|
(license license:gpl3+)))
|
||||||
|
|
||||||
|
|
||||||
|
(define-public hyprcursor
|
||||||
|
(package
|
||||||
|
(name "hyprcursor")
|
||||||
|
(version "0.1.10")
|
||||||
|
(source (origin
|
||||||
|
(method git-fetch)
|
||||||
|
(uri (git-reference
|
||||||
|
(url "https://github.com/hyprwm/hyprcursor")
|
||||||
|
(commit (string-append "v" version))))
|
||||||
|
(file-name (git-file-name name version))
|
||||||
|
(sha256
|
||||||
|
(base32
|
||||||
|
"1rdn03ln7pqcwp8h4nmi7nc489q8y25dd3v4paq8ykvwzhvs3a1n"))))
|
||||||
|
(build-system cmake-build-system)
|
||||||
|
(arguments (list #:tests? #f))
|
||||||
|
(inputs (list cairo hyprlang librsvg libzip tomlplusplus))
|
||||||
|
(native-inputs (list gcc-13 pkg-config))
|
||||||
|
(home-page "https://hyprland.org/")
|
||||||
|
(synopsis "Hyprland cursor format, library and utilities")
|
||||||
|
(description
|
||||||
|
"This package provides Hyprland cursor format, library and utilities.")
|
||||||
|
(license license:bsd-3)))
|
||||||
|
|
||||||
|
|
||||||
|
(define-public hyprwayland-scanner
|
||||||
|
(package
|
||||||
|
(name "hyprwayland-scanner")
|
||||||
|
(version "0.4.2")
|
||||||
|
(source (origin
|
||||||
|
(method git-fetch)
|
||||||
|
(uri (git-reference
|
||||||
|
(url "https://github.com/hyprwm/hyprwayland-scanner")
|
||||||
|
(commit (string-append "v" version))))
|
||||||
|
(file-name (git-file-name name version))
|
||||||
|
(sha256
|
||||||
|
(base32
|
||||||
|
"0r7ay4zjkfyr0xd73wz99qhnqjq7nma98gm51wm9lmai4igw90qw"))))
|
||||||
|
(build-system cmake-build-system)
|
||||||
|
(arguments (list #:tests? #f))
|
||||||
|
(inputs (list pugixml))
|
||||||
|
(native-inputs (list gcc-13 pkg-config))
|
||||||
|
(home-page "https://github.com/hyprwm/hyprwayland-scanner")
|
||||||
|
(synopsis "hyprland implementation of wayland-scanner, in and for c++")
|
||||||
|
(description
|
||||||
|
"this package provides a hyprland implementation of wayland-scanner, in and
|
||||||
|
for c++.")
|
||||||
|
(license license:bsd-3)))
|
||||||
|
|
||||||
|
|
||||||
|
(define-public hyprutils
|
||||||
|
(package
|
||||||
|
(name "hyprutils")
|
||||||
|
(version "0.2.3")
|
||||||
|
(source (origin
|
||||||
|
(method git-fetch)
|
||||||
|
(uri (git-reference
|
||||||
|
(url "https://github.com/hyprwm/hyprutils")
|
||||||
|
(commit (string-append "v" version))))
|
||||||
|
(file-name (git-file-name name version))
|
||||||
|
(sha256
|
||||||
|
(base32
|
||||||
|
"01dh24rf62gb6xm32f7mfv6wx0dxprr1q9y73hvv7xanrjyia2zn"))))
|
||||||
|
(build-system cmake-build-system)
|
||||||
|
(arguments (list #:tests? #f))
|
||||||
|
(native-inputs (list gcc-13 pkg-config pixman))
|
||||||
|
(home-page "https://github.com/hyprwm/hyprutils")
|
||||||
|
(synopsis "Hyprland utilities library used across the ecosystem ")
|
||||||
|
(description
|
||||||
|
"this package provides hyprutils")
|
||||||
|
(license license:bsd-3)))
|
||||||
|
|
||||||
|
|
||||||
|
(define-public aquamarine
|
||||||
|
(package
|
||||||
|
(name "aquamarine")
|
||||||
|
(version "0.4.3")
|
||||||
|
(source (origin
|
||||||
|
(method git-fetch)
|
||||||
|
(uri (git-reference
|
||||||
|
(url "https://github.com/hyprwm/aquamarine")
|
||||||
|
(commit (string-append "v" version))))
|
||||||
|
(patches
|
||||||
|
(sakura-patches "patches/aquamarine-fix-cmake.patch"))
|
||||||
|
(file-name (git-file-name name version))
|
||||||
|
(sha256
|
||||||
|
(base32
|
||||||
|
"0x1zz1ywchs0awkjkvdgskgqnp6pz5lqwmgr8g0zc0i7inhyg1p3"))))
|
||||||
|
(build-system cmake-build-system)
|
||||||
|
(arguments
|
||||||
|
(list #:tests? #f))
|
||||||
|
(native-inputs
|
||||||
|
(list gcc-13
|
||||||
|
pkg-config
|
||||||
|
mesa-headers
|
||||||
|
hyprwayland-scanner
|
||||||
|
hwdata-for-hyprland))
|
||||||
|
(inputs
|
||||||
|
(append aquamarine-common (list hyprutils)))
|
||||||
|
(home-page "https://hyprland.org")
|
||||||
|
(synopsis "Aquamarine is a very light linux rendering backend library ")
|
||||||
|
(description "") ;; TODO: this
|
||||||
|
(license license:bsd-3)))
|
||||||
|
|
||||||
|
|
||||||
|
(define-public hyprland
|
||||||
|
(package
|
||||||
|
(name "hyprland")
|
||||||
|
(version "0.44.1")
|
||||||
|
(source
|
||||||
|
(origin
|
||||||
|
(method git-fetch)
|
||||||
|
(uri (git-reference
|
||||||
|
(url "https://github.com/hyprwm/Hyprland")
|
||||||
|
(commit (string-append "v" version))))
|
||||||
|
(patches
|
||||||
|
(sakura-patches "patches/hyprland-fix-cmake.patch"))
|
||||||
|
(modules '((guix build utils)))
|
||||||
|
(snippet
|
||||||
|
'(begin
|
||||||
|
(for-each delete-file-recursively
|
||||||
|
'("hyprpm"
|
||||||
|
"subprojects"))))
|
||||||
|
(file-name (git-file-name name version))
|
||||||
|
(sha256
|
||||||
|
(base32 "11vw1h9al4jvqprwbrmxvcpxwhvsjj398wbz4flqbnmxa8idvdq1"))))
|
||||||
|
(build-system cmake-build-system)
|
||||||
|
(arguments
|
||||||
|
(list #:tests? #f
|
||||||
|
#:cmake cmake-3.30
|
||||||
|
#:build-type "release"
|
||||||
|
#:phases
|
||||||
|
#~(modify-phases %standard-phases
|
||||||
|
(add-after 'unpack 'fix-path
|
||||||
|
(lambda* (#:key inputs #:allow-other-keys)
|
||||||
|
(substitute* (find-files "src" "\\.cpp$")
|
||||||
|
(("/usr/local(/bin/Hyprland)" _ path)
|
||||||
|
(string-append #$output path))
|
||||||
|
(("/usr") #$output)
|
||||||
|
(("(execAndGet\\(\")\\<(cat|fc-list|lspci)\\>"
|
||||||
|
_ pre cmd)
|
||||||
|
(string-append
|
||||||
|
pre (search-input-file
|
||||||
|
inputs (string-append "bin/" cmd))))
|
||||||
|
(("\\<cc\\>") (search-input-file inputs "bin/gcc"))
|
||||||
|
;; NOTE: Add binutils to inputs will override ld-wrapper.
|
||||||
|
(("(execAndGet\\(\\(\")\\<nm\\>" _ pre)
|
||||||
|
(string-append pre #$binutils "/bin/nm"))
|
||||||
|
(("\\<(addr2line|objcopy)\\>" _ cmd)
|
||||||
|
(string-append #$binutils "/bin/" cmd)))
|
||||||
|
(substitute* "CMakeLists.txt"
|
||||||
|
(("libudis86") "udis86"))
|
||||||
|
))
|
||||||
|
(add-after 'fix-path 'fix-protocols
|
||||||
|
(lambda* (#:key inputs outputs #:allow-other-keys)
|
||||||
|
(let ((protocols (string-append
|
||||||
|
(getcwd)
|
||||||
|
"/subprojects/hyprland-protocols/protocols")))
|
||||||
|
(mkdir-p protocols)
|
||||||
|
(copy-recursively
|
||||||
|
(search-input-directory inputs "share/hyprland-protocols/protocols")
|
||||||
|
protocols))))
|
||||||
|
(add-after 'install 'wrap-program
|
||||||
|
(lambda* (#:key inputs outputs #:allow-other-keys)
|
||||||
|
(let ((out (assoc-ref outputs "out"))
|
||||||
|
(mesa (assoc-ref inputs "mesa")))
|
||||||
|
(wrap-program (string-append out "/bin/Hyprland")
|
||||||
|
`("__EGL_VENDOR_LIBRARY_DIRS" prefix ,(list (string-append mesa "/share/glvnd/egl_vendor.d")))))))
|
||||||
|
)))
|
||||||
|
(native-inputs
|
||||||
|
(list gcc-14
|
||||||
|
jq
|
||||||
|
pkg-config
|
||||||
|
hyprwayland-scanner
|
||||||
|
hwdata-for-hyprland))
|
||||||
|
(inputs
|
||||||
|
(append aquamarine-common
|
||||||
|
(list ; libs
|
||||||
|
pciutils
|
||||||
|
libliftoff
|
||||||
|
udis86-for-hyprland
|
||||||
|
xorg-server-xwayland-for-hyprland
|
||||||
|
; hypr
|
||||||
|
aquamarine
|
||||||
|
hyprcursor
|
||||||
|
hyprlang
|
||||||
|
hyprutils)))
|
||||||
|
(home-page "https://hyprland.org")
|
||||||
|
(synopsis "Dynamic tiling Wayland compositor based on wlroots")
|
||||||
|
(description
|
||||||
|
"Hyprland is a dynamic tiling Wayland compositor based on @code{wlroots}
|
||||||
|
th doesn't sacrifice on its looks. It supports multiple layouts, fancy
|
||||||
|
ef cts, has a very flexible IPC model allowing for a lot of customization, and
|
||||||
|
mo .")
|
||||||
|
(license license:bsd-3)))
|
||||||
|
|
||||||
|
|
||||||
|
(define-public hyprpaper
|
||||||
|
(package
|
||||||
|
(name "hyprpaper")
|
||||||
|
(version "0.7.0")
|
||||||
|
(source (origin
|
||||||
|
(method url-fetch)
|
||||||
|
(uri (string-append "https://github.com/hyprwm/hyprpaper"
|
||||||
|
"/archive/refs/tags/v" version ".tar.gz"))
|
||||||
|
(sha256
|
||||||
|
(base32
|
||||||
|
"1d23nsj5hzyxwvhkg9a7x1b8jgyqwzad91zb1894jnxr2d844h28"))))
|
||||||
|
(build-system cmake-build-system)
|
||||||
|
(arguments
|
||||||
|
`(#:tests? #f))
|
||||||
|
(native-inputs
|
||||||
|
(list gcc-13
|
||||||
|
pkg-config))
|
||||||
|
(inputs
|
||||||
|
(append hyprwayland-common
|
||||||
|
(list ; libs
|
||||||
|
libjpeg-turbo
|
||||||
|
libwebp
|
||||||
|
; hypr
|
||||||
|
hyprlang)))
|
||||||
|
(home-page "https://github.com/hyprwm/hyprpaper")
|
||||||
|
(license license:bsd-3)
|
||||||
|
(synopsis "Hyprpaper is a blazing fast wayland wallpaper utility with IPC controls.")
|
||||||
|
(description "Hyprpaper is a blazing fast wayland wallpaper utility with IPC controls.")))
|
||||||
|
|
||||||
|
|
||||||
|
(define-public hypridle
|
||||||
|
(package
|
||||||
|
(name "hypridle")
|
||||||
|
(version "0.1.2")
|
||||||
|
(source (origin
|
||||||
|
(method url-fetch)
|
||||||
|
(uri (string-append "https://github.com/hyprwm/hypridle"
|
||||||
|
"/archive/refs/tags/v" version ".tar.gz"))
|
||||||
|
(sha256
|
||||||
|
(base32
|
||||||
|
"0ybwip7yq9q569naz5bnrvcdz99648c4pln2zi30z21y333hpas0"))))
|
||||||
|
(build-system cmake-build-system)
|
||||||
|
(arguments
|
||||||
|
`(#:tests? #f))
|
||||||
|
(native-inputs
|
||||||
|
(list gcc-13
|
||||||
|
pkg-config))
|
||||||
|
(inputs
|
||||||
|
(append hyprwayland-common
|
||||||
|
(list hyprlang
|
||||||
|
sdbus-c++)))
|
||||||
|
(home-page "https://github.com/hyprwm/hypridle")
|
||||||
|
(license license:bsd-3)
|
||||||
|
(synopsis "Hyprland's idle daemon ")
|
||||||
|
(description "Hyprland's idle daemon ")))
|
||||||
|
|
||||||
|
|
||||||
|
(define-public hyprlock
|
||||||
|
(package
|
||||||
|
(name "hyprlock")
|
||||||
|
(version "0.4.1")
|
||||||
|
(source (origin
|
||||||
|
(method url-fetch)
|
||||||
|
(uri (string-append "https://github.com/hyprwm/hyprlock"
|
||||||
|
"/archive/refs/tags/v" version ".tar.gz"))
|
||||||
|
(sha256
|
||||||
|
(base32
|
||||||
|
"0q5smah3zmg8vwipfd74n664mavkgzrqjn0i57gwmbwc111illw7"))))
|
||||||
|
(build-system cmake-build-system)
|
||||||
|
(arguments
|
||||||
|
(list
|
||||||
|
#:tests? #f
|
||||||
|
#:phases
|
||||||
|
#~(modify-phases %standard-phases
|
||||||
|
(add-after 'install 'wrap-program
|
||||||
|
(lambda* (#:key inputs outputs #:allow-other-keys)
|
||||||
|
(let ((out (assoc-ref outputs "out"))
|
||||||
|
(mesa (assoc-ref inputs "mesa")))
|
||||||
|
(wrap-program (string-append out "/bin/hyprlock")
|
||||||
|
`("__EGL_VENDOR_LIBRARY_DIRS" prefix ,(list (string-append mesa "/share/glvnd/egl_vendor.d"))))))))))
|
||||||
|
(native-inputs
|
||||||
|
(list gcc-13
|
||||||
|
pkg-config
|
||||||
|
mesa-headers
|
||||||
|
wayland))
|
||||||
|
(inputs
|
||||||
|
(append aquamarine-common
|
||||||
|
(list ; lib
|
||||||
|
libjpeg-turbo
|
||||||
|
libwebp
|
||||||
|
libdrm
|
||||||
|
linux-pam
|
||||||
|
; hypr
|
||||||
|
aquamarine
|
||||||
|
hyprlang
|
||||||
|
hyprutils)))
|
||||||
|
(home-page "https://github.com/hyprwm/hyprlock")
|
||||||
|
(license license:bsd-3)
|
||||||
|
(synopsis "Screen locker for Hyprland")
|
||||||
|
(description "Screen locker for hyprland.")))
|
||||||
|
|
||||||
|
|
||||||
|
(define-public xdg-desktop-portal-hyprland
|
||||||
|
(package
|
||||||
|
(name "xdg-desktop-portal-hyprland")
|
||||||
|
(version "1.3.6")
|
||||||
|
(source (origin
|
||||||
|
(method git-fetch)
|
||||||
|
(uri (git-reference
|
||||||
|
(url "https://github.com/hyprwm/xdg-desktop-portal-hyprland")
|
||||||
|
(commit (string-append "v" version))))
|
||||||
|
(file-name (git-file-name name version))
|
||||||
|
(sha256
|
||||||
|
(base32
|
||||||
|
"17ba9jkccyp8gv79ds70khgm5wm6x8zs5m9nkilq4n2j7fsa8cfl"))))
|
||||||
|
(build-system cmake-build-system)
|
||||||
|
(arguments
|
||||||
|
(list #:tests? #f ;No tests
|
||||||
|
#:phases
|
||||||
|
#~(modify-phases %standard-phases
|
||||||
|
(add-after 'unpack 'fix-path
|
||||||
|
(lambda* (#:key inputs #:allow-other-keys)
|
||||||
|
(substitute* (find-files "." "\\.cp?*$")
|
||||||
|
(("/bin/sh") "sh")
|
||||||
|
(("\\<(sh|grim|hyprctl|slurp)\\>" _ cmd)
|
||||||
|
(search-input-file inputs (string-append "/bin/" cmd)))
|
||||||
|
(("\\<(hyprland-share-picker)\\>" _ cmd)
|
||||||
|
(string-append #$output "/bin/" cmd))))))))
|
||||||
|
(native-inputs
|
||||||
|
(list gcc-13
|
||||||
|
pkg-config
|
||||||
|
hyprwayland-scanner))
|
||||||
|
(inputs
|
||||||
|
(append hyprwayland-common
|
||||||
|
(list ; libs
|
||||||
|
bash-minimal
|
||||||
|
grim
|
||||||
|
sdbus-c++
|
||||||
|
slurp
|
||||||
|
qtbase
|
||||||
|
pipewire-new
|
||||||
|
qtwayland
|
||||||
|
; hypr
|
||||||
|
hyprland
|
||||||
|
hyprlang
|
||||||
|
hyprutils)))
|
||||||
|
(home-page "https://github.com/hyprwm/xdg-desktop-portal-hyprland")
|
||||||
|
(synopsis "XDG Desktop Portal backend for Hyprland")
|
||||||
|
(description
|
||||||
|
"This package provides @code{xdg-desktop-portal-hyprland}, which extends
|
||||||
|
@code{xdg-desktop-portal-wlr} for Hyprland with support for
|
||||||
|
@code{xdg-desktop-portal} screenshot and casting interfaces, while adding a few
|
||||||
|
extra portals specific to Hyprland, mostly for window sharing.")
|
||||||
|
(license license:bsd-3)))
|
||||||
|
|
||||||
|
|
||||||
|
(define-public hyprland-plugin-hy3
|
||||||
|
(package
|
||||||
|
(name "hyprland-plugin-hy3")
|
||||||
|
(version "0.44.0")
|
||||||
|
(source (origin
|
||||||
|
(method git-fetch)
|
||||||
|
(uri (git-reference
|
||||||
|
(url "https://github.com/outfoxxed/hy3.git")
|
||||||
|
(commit (string-append "hl" version))))
|
||||||
|
(sha256
|
||||||
|
(base32
|
||||||
|
"03gxjkn43j85ff8d0hx9nhv5bfwv7vw7m8kacpmajmfnx43mldg9"))))
|
||||||
|
(build-system cmake-build-system)
|
||||||
|
(arguments
|
||||||
|
(list #:tests? #f
|
||||||
|
#:configure-flags #~(list "DCMAKE_BUILD_TYPE=Release")))
|
||||||
|
(native-inputs
|
||||||
|
(list gcc-13
|
||||||
|
pkg-config
|
||||||
|
hyprwayland-scanner))
|
||||||
|
(inputs
|
||||||
|
(append aquamarine-common
|
||||||
|
(list ; lib
|
||||||
|
gcc-13
|
||||||
|
libdrm
|
||||||
|
; hypr
|
||||||
|
aquamarine
|
||||||
|
hyprland
|
||||||
|
hyprlang
|
||||||
|
hyprutils)))
|
||||||
|
(license license:gpl3)
|
||||||
|
(home-page "https://github.com/outfoxxed/hy3")
|
||||||
|
(synopsis "i3 / sway like layout for hyprland.")
|
||||||
|
(description "Hyprland plugin for an i3 / sway like manual tiling layout")))
|
||||||
|
|
||||||
|
|
||||||
|
(define-syntax hyprland-plugin-impl
|
||||||
|
(syntax-rules ()
|
||||||
|
((_ plugin)
|
||||||
|
(package
|
||||||
|
(name (string-append "hyprland-plugin-" plugin))
|
||||||
|
(version "0.44.0")
|
||||||
|
(source
|
||||||
|
(origin
|
||||||
|
(method git-fetch)
|
||||||
|
(uri (git-reference
|
||||||
|
(url "https://github.com/hyprwm/hyprland-plugins.git")
|
||||||
|
(commit (string-append "v" version))))
|
||||||
|
(sha256
|
||||||
|
(base32
|
||||||
|
"0v2zwvrjgc7zg4l8c50934kyq3y5x9f0d34gh3kyh44grfn8w9zx"))
|
||||||
|
(file-name (git-file-name name version))))
|
||||||
|
(build-system cmake-build-system)
|
||||||
|
(arguments
|
||||||
|
(list #:tests? #f
|
||||||
|
#:cmake cmake-3.30
|
||||||
|
#:phases
|
||||||
|
#~(modify-phases %standard-phases
|
||||||
|
(add-after 'unpack 'chdir
|
||||||
|
(lambda _ (chdir (string-append "../source/" plugin "/")))))))
|
||||||
|
(native-inputs
|
||||||
|
(list pkg-config
|
||||||
|
gcc-13
|
||||||
|
hyprwayland-scanner))
|
||||||
|
(inputs
|
||||||
|
(append aquamarine-common
|
||||||
|
(list ; libs
|
||||||
|
gcc-13
|
||||||
|
libdrm
|
||||||
|
; hypr
|
||||||
|
aquamarine
|
||||||
|
hyprland
|
||||||
|
hyprlang
|
||||||
|
hyprutils)))
|
||||||
|
(license license:bsd-3)
|
||||||
|
(home-page "https://github.com/hyprwm/hyprland-plugins")
|
||||||
|
(synopsis (string-append "official " plugin " plugin for hyprland"))
|
||||||
|
(description (string-append "official " plugin " plugin for hyprland"))))))
|
||||||
|
|
||||||
|
|
||||||
|
(define-public hyprland-plugin-borders-plus-plus
|
||||||
|
(hyprland-plugin-impl "borders-plus-plus"))
|
||||||
|
|
||||||
|
|
||||||
|
(define-public hyprland-plugin-csgo-vulkan-fix
|
||||||
|
(hyprland-plugin-impl "csgo-vulkan-fix"))
|
||||||
|
|
||||||
|
|
||||||
|
(define-public hyprland-plugin-hyprbars
|
||||||
|
(hyprland-plugin-impl "hyprbars"))
|
||||||
|
|
||||||
|
|
||||||
|
(define-public hyprland-plugin-hyprexpo
|
||||||
|
(hyprland-plugin-impl "hyprexpo"))
|
||||||
|
|
||||||
|
|
||||||
|
(define-public hyprland-plugin-hyprtrails
|
||||||
|
(hyprland-plugin-impl "hyprtrails"))
|
||||||
|
|
||||||
|
|
||||||
|
(define-public hyprland-plugin-hyprwinwrap
|
||||||
|
(hyprland-plugin-impl "hyprwinwrap"))
|
||||||
|
|
||||||
|
|
||||||
|
(define-public hyprland-plugins
|
||||||
|
(package
|
||||||
|
(name "hyprland-plugins")
|
||||||
|
(version "0.44.0")
|
||||||
|
(source #f)
|
||||||
|
(build-system trivial-build-system)
|
||||||
|
(arguments '(#:builder (begin (mkdir %output) #t)))
|
||||||
|
(license license:bsd-3)
|
||||||
|
(home-page "https://github.com/hyprwm/hyprland-plugins")
|
||||||
|
(synopsis "A collection of all the official hyprland plugins")
|
||||||
|
(description "A metapackage containing inputs for each official plugin")
|
||||||
|
(propagated-inputs (list hyprland-plugin-borders-plus-plus
|
||||||
|
hyprland-plugin-csgo-vulkan-fix
|
||||||
|
hyprland-plugin-hyprbars
|
||||||
|
hyprland-plugin-hyprexpo
|
||||||
|
hyprland-plugin-hyprtrails
|
||||||
|
hyprland-plugin-hyprwinwrap))))
|
||||||
|
|
||||||
|
|
||||||
|
(define-syntax hyprland-contrib-impl
|
||||||
|
(syntax-rules ()
|
||||||
|
((_ contrib)
|
||||||
|
(package
|
||||||
|
(name (string-append "hyprland-conrib-" contrib))
|
||||||
|
(version "0.1")
|
||||||
|
(source
|
||||||
|
(origin
|
||||||
|
(method git-fetch)
|
||||||
|
(uri (git-reference
|
||||||
|
(url "https://github.com/hyprwm/contrib.git")
|
||||||
|
(commit (string-append "v" version))))
|
||||||
|
(sha256
|
||||||
|
(base32
|
||||||
|
"0ld0sj7ahf9jf8cqzbqkhj3m2w60027ixic24ih26nwy90b5qjwx"))
|
||||||
|
(file-name (git-file-name name version))))
|
||||||
|
(build-system gnu-build-system)
|
||||||
|
(arguments
|
||||||
|
`(#:phases (modify-phases %standard-phases
|
||||||
|
(delete 'configure)
|
||||||
|
(delete 'build)
|
||||||
|
(delete 'check)
|
||||||
|
(add-after 'unpack 'chdir
|
||||||
|
(lambda _ (chdir (string-append "../source/" contrib "/"))))
|
||||||
|
(add-after 'chdir 'patch-make
|
||||||
|
(lambda* (#:key inputs #:allow-other-keys)
|
||||||
|
(substitute* "Makefile"
|
||||||
|
(("scdoc") (string-append (assoc-ref inputs "scdoc") "/bin/scdoc")))))
|
||||||
|
(replace 'install
|
||||||
|
(lambda* (#:key outputs #:allow-other-keys)
|
||||||
|
(invoke "make" "install" (string-append "PREFIX=" (assoc-ref outputs "out")))))
|
||||||
|
)))
|
||||||
|
(native-inputs (list scdoc))
|
||||||
|
(license license:expat)
|
||||||
|
(home-page "https://github.com/hyprwm/contrib")
|
||||||
|
(synopsis (string-append "official " contrib " script for hyprland"))
|
||||||
|
(description (string-append "official " contrib " script for hyprland"))))))
|
||||||
|
|
||||||
|
|
||||||
|
(define-public hyprland-contrib-grimblast
|
||||||
|
(hyprland-contrib-impl "grimblast"))
|
||||||
|
|
||||||
|
|
||||||
|
(define-public hyprland-contrib-hyprprop
|
||||||
|
(hyprland-contrib-impl "hyprprop"))
|
||||||
|
|
||||||
|
|
||||||
|
(define-public hyprland-contrib-scratchpad
|
||||||
|
(hyprland-contrib-impl "scratchpad"))
|
||||||
|
|
||||||
|
|
||||||
|
(define-public hyprland-contrib-shellevents
|
||||||
|
(hyprland-contrib-impl "shellevents"))
|
||||||
|
|
||||||
|
|
||||||
|
(define-public hyprland-contrib
|
||||||
|
(package
|
||||||
|
(name "hyprland-contrib")
|
||||||
|
(version "0.1")
|
||||||
|
(source #f)
|
||||||
|
(build-system trivial-build-system)
|
||||||
|
(arguments '(#:builder (begin (mkdir %output) #t)))
|
||||||
|
(license license:bsd-3)
|
||||||
|
(home-page "https://github.com/hyprwm/contrib")
|
||||||
|
(synopsis "A collection of all the official hyprland contrib scripts")
|
||||||
|
(description "A metapackage containing inputs for each official contrib script")
|
||||||
|
(propagated-inputs (list hyprland-contrib-grimblast
|
||||||
|
hyprland-contrib-hyprprop
|
||||||
|
hyprland-contrib-scratchpad
|
||||||
|
hyprland-contrib-shellevents))))
|
59
sakura/packages/librewolf.scm
Normal file
59
sakura/packages/librewolf.scm
Normal file
|
@ -0,0 +1,59 @@
|
||||||
|
(define-module (sakura packages librewolf)
|
||||||
|
#:use-module ((guix licenses) #:prefix license:)
|
||||||
|
#:use-module (guix download)
|
||||||
|
#:use-module (guix packages)
|
||||||
|
#:use-module (guix build-system trivial)
|
||||||
|
#:use-module (gnu)
|
||||||
|
#:use-module (gnu packages bash)
|
||||||
|
#:use-module (gnu packages linux)
|
||||||
|
#:use-module (gnu packages librewolf)
|
||||||
|
#:use-module (sakura packages linux))
|
||||||
|
|
||||||
|
(define-public librewolf-new
|
||||||
|
(package
|
||||||
|
(name "librewolf-new")
|
||||||
|
(source #f)
|
||||||
|
(version "0.1")
|
||||||
|
(synopsis "Simple wrapper for pipewire in librewolf")
|
||||||
|
(description "Simple wrapper for pipewire in librewolf")
|
||||||
|
(home-page "https://librewolf.net/")
|
||||||
|
(license license:mpl2.0)
|
||||||
|
(inputs
|
||||||
|
`(("bash" ,bash-minimal)
|
||||||
|
("pipewire" ,pipewire-new)
|
||||||
|
("librewolf" ,librewolf)))
|
||||||
|
(build-system trivial-build-system)
|
||||||
|
(arguments
|
||||||
|
'(#:modules ((guix build utils))
|
||||||
|
#:builder
|
||||||
|
(begin
|
||||||
|
(use-modules (guix build utils))
|
||||||
|
(let* ((bash (assoc-ref %build-inputs "bash"))
|
||||||
|
(librewolf (assoc-ref %build-inputs "librewolf"))
|
||||||
|
(pipewire (assoc-ref %build-inputs "pipewire"))
|
||||||
|
(out (assoc-ref %outputs "out"))
|
||||||
|
(exe (string-append out "/bin/librewolf")))
|
||||||
|
(mkdir-p (dirname exe))
|
||||||
|
|
||||||
|
(call-with-output-file exe
|
||||||
|
(lambda (port)
|
||||||
|
;; NOTE: added "export LD_LIBRARY_PATH=pipewire"
|
||||||
|
;; maybe this can be done better with `wrap-programm'
|
||||||
|
(format port "#!~a \n
|
||||||
|
export LD_LIBRARY_PATH=~a \n
|
||||||
|
export MOZ_ENABLE_WAYLAND=1 \n
|
||||||
|
export MOZ_USE_XINPUT2=1 \n
|
||||||
|
exec ~a $@\n"
|
||||||
|
(string-append bash "/bin/bash")
|
||||||
|
(string-append pipewire "/lib")
|
||||||
|
(string-append librewolf "/bin/librewolf"))))
|
||||||
|
(chmod exe #o555)
|
||||||
|
|
||||||
|
;; Provide the manual and .desktop file.
|
||||||
|
(copy-recursively (string-append librewolf "/share")
|
||||||
|
(string-append out "/share"))
|
||||||
|
(substitute* (string-append
|
||||||
|
out "/share/applications/librewolf.desktop")
|
||||||
|
((librewolf) out))
|
||||||
|
#t))))))
|
||||||
|
|
107
sakura/packages/linux.scm
Normal file
107
sakura/packages/linux.scm
Normal file
|
@ -0,0 +1,107 @@
|
||||||
|
(define-module (sakura packages linux)
|
||||||
|
#:use-module (guix gexp)
|
||||||
|
#:use-module (guix utils)
|
||||||
|
#:use-module (guix packages)
|
||||||
|
#:use-module (guix download)
|
||||||
|
#:use-module (guix git-download)
|
||||||
|
#:use-module (gnu packages)
|
||||||
|
#:use-module (gnu packages linux)
|
||||||
|
#:use-module (gnu packages python-xyz)
|
||||||
|
#:use-module (sakura packages pulseaudio))
|
||||||
|
|
||||||
|
(define-public bluez-new
|
||||||
|
(package
|
||||||
|
(inherit bluez)
|
||||||
|
(version "5.78")
|
||||||
|
(source
|
||||||
|
(origin
|
||||||
|
(method url-fetch)
|
||||||
|
(uri (string-append
|
||||||
|
"mirror://kernel.org/linux/bluetooth/bluez-"
|
||||||
|
version ".tar.xz"))
|
||||||
|
(sha256
|
||||||
|
(base32
|
||||||
|
"1qy5fc6z1l3fvcqkvyszzz2xr86yzi2nyphgvsw7bly52lcys3w3"))))
|
||||||
|
(arguments (list
|
||||||
|
#:configure-flags
|
||||||
|
#~(list (string-append "--prefix=" #$output)
|
||||||
|
"--sysconfdir=/etc"
|
||||||
|
"--localstatedir=/var"
|
||||||
|
"--enable-library"
|
||||||
|
"--disable-manpages"
|
||||||
|
"--disable-systemd"
|
||||||
|
"--enable-hid2hci"
|
||||||
|
(string-append "--with-dbusconfdir=" #$output "/etc")
|
||||||
|
(string-append "--with-udevdir=" #$output "/lib/udev"))
|
||||||
|
#:phases
|
||||||
|
#~(modify-phases %standard-phases
|
||||||
|
(add-after 'configure 'fix-makefile
|
||||||
|
(lambda _
|
||||||
|
(substitute* "Makefile"
|
||||||
|
(("install-confDATA:") "install-IGNORED:")
|
||||||
|
(("install-confDATA") "")
|
||||||
|
(("bluetoothd-fix-permissions:") "install-IGNORED2:")
|
||||||
|
(("bluetoothd-fix-permissions") "")))))
|
||||||
|
))
|
||||||
|
))
|
||||||
|
|
||||||
|
|
||||||
|
(define-public alsa-lib-new
|
||||||
|
(package
|
||||||
|
(inherit alsa-lib)
|
||||||
|
(name "alsa-lib")
|
||||||
|
(version "1.2.12")
|
||||||
|
(source (origin
|
||||||
|
(method url-fetch)
|
||||||
|
(uri (string-append
|
||||||
|
"ftp://ftp.alsa-project.org/pub/lib/alsa-lib-"
|
||||||
|
version ".tar.bz2"))
|
||||||
|
(sha256
|
||||||
|
(base32
|
||||||
|
"1lnh38wii8mnwp3n4hnqa718rgi52rq6ix1llsjrs9r7hs8css28"))))))
|
||||||
|
|
||||||
|
|
||||||
|
(define-public pipewire-new
|
||||||
|
(package
|
||||||
|
(inherit pipewire)
|
||||||
|
(name "pipewire")
|
||||||
|
(version "1.2.2")
|
||||||
|
(source (origin
|
||||||
|
(method git-fetch)
|
||||||
|
(uri (git-reference
|
||||||
|
(url "https://gitlab.freedesktop.org/pipewire/pipewire")
|
||||||
|
(commit version)))
|
||||||
|
(file-name (git-file-name name version))
|
||||||
|
(sha256
|
||||||
|
(base32
|
||||||
|
"0cvbyklzqcdr9zj7k7psb24xp8cxb9fdksrd74r68zvnbbix1qlx"))))
|
||||||
|
(inputs
|
||||||
|
(modify-inputs (package-inputs pipewire)
|
||||||
|
(delete "alsa-lib")
|
||||||
|
(delete "bluez")
|
||||||
|
(delete "pulseaudio")
|
||||||
|
(prepend alsa-lib-new)
|
||||||
|
(prepend bluez-new)
|
||||||
|
(prepend pulseaudio-new)))))
|
||||||
|
|
||||||
|
|
||||||
|
(define-public wireplumber-new
|
||||||
|
(package
|
||||||
|
(inherit wireplumber)
|
||||||
|
(name "wireplumber")
|
||||||
|
(version "0.5.5")
|
||||||
|
(source
|
||||||
|
(origin
|
||||||
|
(method git-fetch)
|
||||||
|
(uri (git-reference
|
||||||
|
(url
|
||||||
|
"https://gitlab.freedesktop.org/pipewire/wireplumber.git")
|
||||||
|
(commit version)))
|
||||||
|
(file-name (git-file-name name version))
|
||||||
|
(sha256
|
||||||
|
(base32 "1s9p2hpi9v4w70j6hhqnsa4czhn3rzrk03j0qb7lz87qlw491yks"))))
|
||||||
|
(inputs
|
||||||
|
(modify-inputs
|
||||||
|
(package-inputs wireplumber)
|
||||||
|
(delete "pipewire")
|
||||||
|
(prepend pipewire-new)))))
|
139
sakura/packages/networking.scm
Normal file
139
sakura/packages/networking.scm
Normal file
|
@ -0,0 +1,139 @@
|
||||||
|
(define-module (sakura packages networking)
|
||||||
|
#:use-module ((guix licenses) #:prefix license:)
|
||||||
|
#:use-module (guix gexp)
|
||||||
|
#:use-module (guix utils)
|
||||||
|
#:use-module (guix build utils)
|
||||||
|
#:use-module (guix packages)
|
||||||
|
#:use-module (guix download)
|
||||||
|
#:use-module (guix git-download)
|
||||||
|
#:use-module (guix build-system cargo)
|
||||||
|
#:use-module (guix build-system meson)
|
||||||
|
#:use-module (gnu packages)
|
||||||
|
#:use-module (gnu packages linux)
|
||||||
|
#:use-module (gnu packages gcc)
|
||||||
|
#:use-module (gnu packages gtk)
|
||||||
|
#:use-module (gnu packages glib)
|
||||||
|
#:use-module (gnu packages gnome)
|
||||||
|
#:use-module (gnu packages pkg-config)
|
||||||
|
#:use-module (gnu packages networking)
|
||||||
|
#:use-module (gnu packages crates-io)
|
||||||
|
#:use-module (gnu packages crates-gtk)
|
||||||
|
#:use-module (gnu packages pulseaudio)
|
||||||
|
#:use-module (gnu packages freedesktop)
|
||||||
|
#:use-module (gnu packages gettext)
|
||||||
|
#:use-module (gnu packages rust)
|
||||||
|
#:use-module (sakura packages)
|
||||||
|
#:use-module (sakura packages linux)
|
||||||
|
#:use-module (sakura packages crates-io)
|
||||||
|
#:use-module (sakura packages pulseaudio))
|
||||||
|
|
||||||
|
(define overskride-version
|
||||||
|
"0.5.7")
|
||||||
|
(define overskride-source
|
||||||
|
(origin
|
||||||
|
(method url-fetch)
|
||||||
|
(uri (string-append "https://github.com/kaii-lb/overskride"
|
||||||
|
"/archive/refs/tags/v" overskride-version ".tar.gz"))
|
||||||
|
(file-name (string-append "overskride-" overskride-version ".tar.gz"))
|
||||||
|
(patches (sakura-patches "patches/overskride-fix-meson.patch"))
|
||||||
|
(modules '((guix build utils)))
|
||||||
|
(snippet
|
||||||
|
'(begin
|
||||||
|
(delete-file-recursively
|
||||||
|
"subprojects")))
|
||||||
|
(sha256
|
||||||
|
(base32
|
||||||
|
"0qncsyapw4fl9zx95i1i62karvrbqj58lrd2difms36wa14ylz2v"))))
|
||||||
|
|
||||||
|
|
||||||
|
(define overskride-glib
|
||||||
|
(package
|
||||||
|
(name "overskride-glib")
|
||||||
|
(version overskride-version)
|
||||||
|
(source overskride-source)
|
||||||
|
(build-system meson-build-system)
|
||||||
|
(native-inputs
|
||||||
|
(list rust
|
||||||
|
desktop-file-utils
|
||||||
|
gettext-minimal
|
||||||
|
pkg-config
|
||||||
|
blueprint-compiler
|
||||||
|
gobject-introspection
|
||||||
|
`(,gtk "bin")
|
||||||
|
`(,glib "bin")))
|
||||||
|
(propagated-inputs
|
||||||
|
(list gtk
|
||||||
|
libadwaita))
|
||||||
|
(home-page "https://github.com/kaii-lb/overskride")
|
||||||
|
(synopsis "A simple yet powerful bluetooth client.")
|
||||||
|
(description "Provides the glib components of the overskride pacakge")
|
||||||
|
(license license:gpl3+)))
|
||||||
|
|
||||||
|
|
||||||
|
(define-public overskride
|
||||||
|
(package
|
||||||
|
(name "overskride")
|
||||||
|
(version overskride-version)
|
||||||
|
(source overskride-source)
|
||||||
|
(build-system cargo-build-system)
|
||||||
|
(arguments
|
||||||
|
`(#:tests? #f
|
||||||
|
#:cargo-inputs (("rust-libadwaita" ,rust-libadwaita-0.5)
|
||||||
|
("rust-bluer" ,rust-bluer-0.17)
|
||||||
|
("rust-dbus" ,rust-dbus-0.9)
|
||||||
|
("rust-dbus-crossroads" ,rust-dbus-crossroads-0.5)
|
||||||
|
("rust-futures" ,rust-futures-0.3)
|
||||||
|
("rust-gettext-rs" ,rust-gettext-rs-0.7)
|
||||||
|
("rust-gtk" ,rust-gtk-0.8)
|
||||||
|
("rust-pnf" ,rust-phf-0.11)
|
||||||
|
("rust-tokio" ,rust-tokio-1)
|
||||||
|
("rust-tokio-util" ,rust-tokio-util-0.7)
|
||||||
|
("rust-uuid" ,rust-uuid-1)
|
||||||
|
("rust-libpulse-binding" ,rust-libpulse-binding-2))
|
||||||
|
#:phases
|
||||||
|
(modify-phases %standard-phases
|
||||||
|
(add-after 'unpack 'patch-source
|
||||||
|
(lambda* (#:key outputs #:allow-other-keys)
|
||||||
|
(substitute* "Cargo.toml"
|
||||||
|
(("0.16.1") "0.17"))
|
||||||
|
(substitute* "src/config.rs"
|
||||||
|
(("\\/usr\\/share\\/overskride")
|
||||||
|
(string-append (assoc-ref outputs "out")
|
||||||
|
"/share/overskride")))))
|
||||||
|
(add-after 'install 'install-glib
|
||||||
|
(lambda* (#:key inputs outputs #:allow-other-keys)
|
||||||
|
(let ((out (assoc-ref outputs "out"))
|
||||||
|
(glib (assoc-ref inputs "overskride-glib")))
|
||||||
|
(copy-recursively glib out))))
|
||||||
|
(add-after 'install-glib 'wrap-program
|
||||||
|
(lambda* (#:key inputs outputs #:allow-other-keys)
|
||||||
|
(wrap-program (string-append (assoc-ref outputs "out")
|
||||||
|
"/bin/overskride")
|
||||||
|
`("GSETTINGS_SCHEMA_DIR" =
|
||||||
|
(,(string-append (assoc-ref outputs "out")
|
||||||
|
"/share/glib-2.0/schemas")))))))))
|
||||||
|
(native-inputs (list gcc-13
|
||||||
|
pkg-config
|
||||||
|
`(,gtk "bin")
|
||||||
|
`(,glib "bin")))
|
||||||
|
(inputs (list overskride-glib
|
||||||
|
gcc-13
|
||||||
|
dbus
|
||||||
|
libadwaita
|
||||||
|
pulseaudio-new
|
||||||
|
bluez-new))
|
||||||
|
(home-page "https://github.com/kaii-lb/overskride")
|
||||||
|
(synopsis "A simple yet powerful bluetooth client.")
|
||||||
|
(description "todo")
|
||||||
|
(license license:gpl3+)))
|
||||||
|
|
||||||
|
|
||||||
|
(define-public blueman-new
|
||||||
|
(package
|
||||||
|
(inherit blueman)
|
||||||
|
(inputs
|
||||||
|
(modify-inputs
|
||||||
|
(package-inputs blueman)
|
||||||
|
(delete "bluez")
|
||||||
|
(prepend bluez-new)))))
|
||||||
|
|
25
sakura/packages/patches/aquamarine-fix-cmake.patch
Normal file
25
sakura/packages/patches/aquamarine-fix-cmake.patch
Normal file
|
@ -0,0 +1,25 @@
|
||||||
|
From 7b6f11ed0708d8775f42107e19d9099835e2498e Mon Sep 17 00:00:00 2001
|
||||||
|
From: Freya Murphy <freya@freyacat.org>
|
||||||
|
Date: Mon, 5 Aug 2024 17:52:48 -0400
|
||||||
|
Subject: [PATCH] fix cmake
|
||||||
|
|
||||||
|
---
|
||||||
|
CMakeLists.txt | 2 +-
|
||||||
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||||
|
|
||||||
|
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
||||||
|
index bb7a4d6..7f7e7ff 100644
|
||||||
|
--- a/CMakeLists.txt
|
||||||
|
+++ b/CMakeLists.txt
|
||||||
|
@@ -19,7 +19,7 @@ set(INCLUDE ${CMAKE_INSTALL_FULL_INCLUDEDIR})
|
||||||
|
set(LIBDIR ${CMAKE_INSTALL_FULL_LIBDIR})
|
||||||
|
|
||||||
|
find_package(PkgConfig REQUIRED)
|
||||||
|
-find_package(OpenGL REQUIRED COMPONENTS "GLES2")
|
||||||
|
+find_package(OpenGL REQUIRED)
|
||||||
|
find_package(hyprwayland-scanner 0.4.0 REQUIRED)
|
||||||
|
pkg_check_modules(
|
||||||
|
deps
|
||||||
|
--
|
||||||
|
2.45.1
|
||||||
|
|
33
sakura/packages/patches/hyprland-fix-cmake.patch
Normal file
33
sakura/packages/patches/hyprland-fix-cmake.patch
Normal file
|
@ -0,0 +1,33 @@
|
||||||
|
From 33fac66982422104cc1c2664f9a841fc96295c13 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Freya Murphy <freya@freyacat.org>
|
||||||
|
Date: Mon, 5 Aug 2024 20:35:50 -0400
|
||||||
|
Subject: [PATCH] fix cmake
|
||||||
|
|
||||||
|
---
|
||||||
|
CMakeLists.txt | 4 +---
|
||||||
|
1 file changed, 1 insertion(+), 3 deletions(-)
|
||||||
|
|
||||||
|
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
||||||
|
index fa58b63d..51ea6cfa 100644
|
||||||
|
--- a/CMakeLists.txt
|
||||||
|
+++ b/CMakeLists.txt
|
||||||
|
@@ -85,7 +84,7 @@ if(LEGACY_RENDERER)
|
||||||
|
else()
|
||||||
|
set(GLES_VERSION "GLES3")
|
||||||
|
endif()
|
||||||
|
-find_package(OpenGL REQUIRED COMPONENTS ${GLES_VERSION})
|
||||||
|
+find_package(OpenGL REQUIRED)
|
||||||
|
|
||||||
|
pkg_check_modules(
|
||||||
|
deps
|
||||||
|
@@ -314,7 +313,6 @@ protocolwayland()
|
||||||
|
|
||||||
|
# tools
|
||||||
|
add_subdirectory(hyprctl)
|
||||||
|
-add_subdirectory(hyprpm)
|
||||||
|
|
||||||
|
# binary and symlink
|
||||||
|
install(TARGETS Hyprland)
|
||||||
|
--
|
||||||
|
2.45.1
|
||||||
|
|
67
sakura/packages/patches/overskride-fix-meson.patch
Normal file
67
sakura/packages/patches/overskride-fix-meson.patch
Normal file
|
@ -0,0 +1,67 @@
|
||||||
|
From fa401fc5082dbf4dc048e05222c752a14b808a53 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Freya Murphy <freya@freyacat.org>
|
||||||
|
Date: Sat, 10 Aug 2024 15:14:15 -0400
|
||||||
|
Subject: [PATCH] fix meson
|
||||||
|
|
||||||
|
---
|
||||||
|
src/meson.build | 47 -----------------------------------------------
|
||||||
|
1 file changed, 47 deletions(-)
|
||||||
|
|
||||||
|
diff --git a/src/meson.build b/src/meson.build
|
||||||
|
index f64920f..11c45a7 100644
|
||||||
|
--- a/src/meson.build
|
||||||
|
+++ b/src/meson.build
|
||||||
|
@@ -25,50 +25,3 @@ gnome.compile_resources('overskride',
|
||||||
|
install: true,
|
||||||
|
install_dir: pkgdatadir,
|
||||||
|
)
|
||||||
|
-
|
||||||
|
-conf = configuration_data()
|
||||||
|
-conf.set_quoted('VERSION', meson.project_version())
|
||||||
|
-conf.set_quoted('GETTEXT_PACKAGE', 'overskride')
|
||||||
|
-conf.set_quoted('LOCALEDIR', join_paths(get_option('prefix'), get_option('localedir')))
|
||||||
|
-conf.set_quoted('PKGDATADIR', pkgdatadir)
|
||||||
|
-
|
||||||
|
-configure_file(
|
||||||
|
- input: 'config.rs.in',
|
||||||
|
- output: 'config.rs',
|
||||||
|
- configuration: conf
|
||||||
|
-)
|
||||||
|
-
|
||||||
|
-# Copy the config.rs output to the source directory.
|
||||||
|
-run_command(
|
||||||
|
- 'cp',
|
||||||
|
- join_paths(meson.project_build_root(), 'src', 'config.rs'),
|
||||||
|
- join_paths(meson.project_source_root(), 'src', 'config.rs'),
|
||||||
|
- check: true
|
||||||
|
-)
|
||||||
|
-
|
||||||
|
-cargo_bin = find_program('cargo')
|
||||||
|
-cargo_opt = [ '--manifest-path', meson.project_source_root() / 'Cargo.toml' ]
|
||||||
|
-cargo_opt += [ '--target-dir', meson.project_build_root() / 'src' ]
|
||||||
|
-cargo_env = [ 'CARGO_HOME=' + meson.project_build_root() / 'cargo-home' ]
|
||||||
|
-
|
||||||
|
-if get_option('buildtype') == 'release'
|
||||||
|
- cargo_opt += [ '--release' ]
|
||||||
|
- rust_target = 'release'
|
||||||
|
-else
|
||||||
|
- rust_target = 'debug'
|
||||||
|
-endif
|
||||||
|
-
|
||||||
|
-cargo_build = custom_target(
|
||||||
|
- 'cargo-build',
|
||||||
|
- build_by_default: true,
|
||||||
|
- build_always_stale: true,
|
||||||
|
- output: meson.project_name(),
|
||||||
|
- console: true,
|
||||||
|
- install: true,
|
||||||
|
- install_dir: get_option('bindir'),
|
||||||
|
- command: [
|
||||||
|
- 'env', cargo_env,
|
||||||
|
- cargo_bin, 'build',
|
||||||
|
- cargo_opt, '&&', 'cp', 'src' / rust_target / meson.project_name(), '@OUTPUT@',
|
||||||
|
- ]
|
||||||
|
-)
|
||||||
|
--
|
||||||
|
2.45.2
|
||||||
|
|
34
sakura/packages/pulseaudio.scm
Normal file
34
sakura/packages/pulseaudio.scm
Normal file
|
@ -0,0 +1,34 @@
|
||||||
|
(define-module (sakura packages pulseaudio)
|
||||||
|
#:use-module (guix download)
|
||||||
|
#:use-module (guix git-download)
|
||||||
|
#:use-module (guix packages)
|
||||||
|
#:use-module (guix gexp)
|
||||||
|
#:use-module (guix utils)
|
||||||
|
#:use-module (gnu packages)
|
||||||
|
#:use-module (gnu packages pulseaudio)
|
||||||
|
#:use-module (sakura packages linux))
|
||||||
|
|
||||||
|
(define-public pulseaudio-new
|
||||||
|
(package
|
||||||
|
(inherit pulseaudio)
|
||||||
|
(name "pulseaudio")
|
||||||
|
(version "17.0")
|
||||||
|
(source (origin
|
||||||
|
(method url-fetch)
|
||||||
|
(uri (string-append
|
||||||
|
"https://freedesktop.org/software/pulseaudio/releases/"
|
||||||
|
name "-" version ".tar.xz"))
|
||||||
|
(sha256
|
||||||
|
(base32
|
||||||
|
"1dc7xdfbn5rknwsvv5m2ijfwnqrap208liwyhiykjghsczb98dq5"))))
|
||||||
|
(arguments
|
||||||
|
(substitute-keyword-arguments (package-arguments pulseaudio)
|
||||||
|
((#:phases phases)
|
||||||
|
#~(modify-phases #$phases
|
||||||
|
(delete 'check)))))
|
||||||
|
(inputs
|
||||||
|
(modify-inputs (package-inputs pulseaudio)
|
||||||
|
(delete "alsa-lib")
|
||||||
|
(delete "bluez")
|
||||||
|
(prepend alsa-lib-new)
|
||||||
|
(prepend bluez-new)))))
|
111
sakura/packages/qt.scm
Normal file
111
sakura/packages/qt.scm
Normal file
|
@ -0,0 +1,111 @@
|
||||||
|
(define-module (sakura packages qt)
|
||||||
|
#:use-module ((guix licenses) #:prefix license:)
|
||||||
|
#:use-module (guix utils)
|
||||||
|
#:use-module (guix gexp)
|
||||||
|
#:use-module (guix packages)
|
||||||
|
#:use-module (guix download)
|
||||||
|
#:use-module (guix git-download)
|
||||||
|
#:use-module (guix build-system gnu)
|
||||||
|
#:use-module (gnu packages base)
|
||||||
|
#:use-module (gnu packages gtk)
|
||||||
|
#:use-module (gnu packages xorg)
|
||||||
|
#:use-module (gnu packages xdisorg)
|
||||||
|
#:use-module (gnu packages pkg-config)
|
||||||
|
#:use-module (gnu packages qt))
|
||||||
|
|
||||||
|
(define-public qt5-styleplugins
|
||||||
|
(let ((commit "7bd6205398b2d89b3ac083b2f6f00b197f40057a")
|
||||||
|
(revision "1"))
|
||||||
|
(package
|
||||||
|
(name "qt5-styleplugins")
|
||||||
|
(version (git-version "5.0.0" revision commit))
|
||||||
|
(source (origin
|
||||||
|
(method git-fetch)
|
||||||
|
(uri (git-reference
|
||||||
|
(url "https://github.com/qt/qtstyleplugins")
|
||||||
|
(commit commit)))
|
||||||
|
(file-name (git-file-name name version))
|
||||||
|
(sha256
|
||||||
|
(base32
|
||||||
|
"0pi30l6g8bk1z83n6q6khjcm789szzz52aq1r9va6285i5j8ykac"))))
|
||||||
|
(build-system gnu-build-system)
|
||||||
|
(arguments
|
||||||
|
`(#:phases (modify-phases %standard-phases
|
||||||
|
(replace 'configure
|
||||||
|
(lambda* (#:key outputs #:allow-other-keys)
|
||||||
|
(let ((out (assoc-ref outputs "out")))
|
||||||
|
(invoke "qmake"
|
||||||
|
(string-append "prefix=" out)))))
|
||||||
|
(replace 'install
|
||||||
|
(lambda* (#:key inputs outputs #:allow-other-keys)
|
||||||
|
(let ((out (assoc-ref outputs "out"))
|
||||||
|
(qt5 (assoc-ref inputs "qtbase")))
|
||||||
|
(invoke "make" (string-append "INSTALL_ROOT=\"" out "\"") "install")
|
||||||
|
(let ((lib (string-append out qt5 "/lib")))
|
||||||
|
(invoke "mv" lib out)
|
||||||
|
(invoke "rm" "-fr" (string-append out "/gnu"))))))
|
||||||
|
)))
|
||||||
|
(native-inputs
|
||||||
|
(list qttools-5
|
||||||
|
findutils
|
||||||
|
coreutils))
|
||||||
|
(inputs
|
||||||
|
(list qtbase-5))
|
||||||
|
(home-page "https://github.com/qt/qtstyleplugins")
|
||||||
|
(synopsis "Additional style plugins for Qt")
|
||||||
|
(description "Additional style plugins for Qt")
|
||||||
|
(license license:expat))))
|
||||||
|
|
||||||
|
|
||||||
|
(define-public qt6gtk2
|
||||||
|
(package
|
||||||
|
(name "qt6gtk2")
|
||||||
|
(version "0.2")
|
||||||
|
(source (origin
|
||||||
|
(method url-fetch)
|
||||||
|
(uri (string-append "https://github.com/trialuser02/qt6gtk2"
|
||||||
|
"/archive/refs/tags/" version ".tar.gz"))
|
||||||
|
(sha256
|
||||||
|
(base32
|
||||||
|
"133f8ax1clbsc4ppdibfjcfz38153rznplp1sgfcrfi7bkgrm00c"))))
|
||||||
|
(build-system gnu-build-system)
|
||||||
|
(arguments
|
||||||
|
`(#:phases (modify-phases %standard-phases
|
||||||
|
(replace 'configure
|
||||||
|
(lambda* (#:key inputs outputs #:allow-other-keys)
|
||||||
|
(let ((out (assoc-ref outputs "out"))
|
||||||
|
(gtk2 (assoc-ref inputs "gtk+"))
|
||||||
|
(x11 (assoc-ref inputs "libx11")))
|
||||||
|
(substitute* "qt6gtk2.pri"
|
||||||
|
(("UI_DIR") (string-append
|
||||||
|
"PKG_CONFIG = "
|
||||||
|
(assoc-ref inputs "pkg-config")
|
||||||
|
"/bin/pkg-config"
|
||||||
|
"\nPKG_CONFIG_PATH = "
|
||||||
|
gtk2 "/include" ":" x11 "/include"
|
||||||
|
"\nUI_DIR")))
|
||||||
|
(invoke "qmake"
|
||||||
|
(string-append "prefix=" out))
|
||||||
|
)))
|
||||||
|
(replace 'install
|
||||||
|
(lambda* (#:key inputs outputs #:allow-other-keys)
|
||||||
|
(let ((out (assoc-ref outputs "out"))
|
||||||
|
(qt5 (assoc-ref inputs "qtbase")))
|
||||||
|
(invoke "make" (string-append "INSTALL_ROOT=\"" out "\"") "install")
|
||||||
|
(let ((lib (string-append out qt5 "/lib")))
|
||||||
|
(invoke "mv" lib out)
|
||||||
|
(invoke "rm" "-fr" (string-append out "/gnu"))))))
|
||||||
|
)))
|
||||||
|
(native-inputs
|
||||||
|
(list pkg-config
|
||||||
|
qttools
|
||||||
|
coreutils))
|
||||||
|
(inputs
|
||||||
|
(list qtbase
|
||||||
|
gtk+-2
|
||||||
|
libx11
|
||||||
|
libxkbcommon))
|
||||||
|
(home-page "")
|
||||||
|
(synopsis "")
|
||||||
|
(description "")
|
||||||
|
(license license:expat)))
|
45
sakura/packages/shells.scm
Normal file
45
sakura/packages/shells.scm
Normal file
|
@ -0,0 +1,45 @@
|
||||||
|
(define-module (sakura packages shells)
|
||||||
|
#:use-module ((guix licenses) #:prefix license:)
|
||||||
|
#:use-module (gnu packages base)
|
||||||
|
#:use-module (gnu packages version-control)
|
||||||
|
#:use-module (gnu packages web)
|
||||||
|
#:use-module (gnu packages bash)
|
||||||
|
#:use-module (gnu packages)
|
||||||
|
#:use-module (guix packages)
|
||||||
|
#:use-module (guix download)
|
||||||
|
#:use-module (guix git-download)
|
||||||
|
#:use-module (guix build-system trivial)
|
||||||
|
#:use-module (guix utils)
|
||||||
|
#:use-module (guix gexp))
|
||||||
|
|
||||||
|
(define-public zsh-autosuggestions
|
||||||
|
(package
|
||||||
|
(name "zsh-autosuggestions")
|
||||||
|
(version "0.7.0")
|
||||||
|
(source
|
||||||
|
(origin
|
||||||
|
(method git-fetch)
|
||||||
|
(uri (git-reference
|
||||||
|
(url "https://github.com/zsh-users/zsh-autosuggestions")
|
||||||
|
(commit (string-append "v" version))))
|
||||||
|
(sha256
|
||||||
|
(base32
|
||||||
|
"1g3pij5qn2j7v7jjac2a63lxd97mcsgw6xq6k5p7835q9fjiid98"))
|
||||||
|
(file-name (git-file-name name version))))
|
||||||
|
(build-system trivial-build-system)
|
||||||
|
(arguments
|
||||||
|
'(#:modules ((guix build utils))
|
||||||
|
#:builder
|
||||||
|
(begin
|
||||||
|
(use-modules (guix build utils))
|
||||||
|
(let* ((out (assoc-ref %outputs "out"))
|
||||||
|
(bin (string-append out "/share/zsh/zsh-autosuggestions"))
|
||||||
|
(source (assoc-ref %build-inputs "source")))
|
||||||
|
(mkdir-p bin)
|
||||||
|
(copy-recursively source bin)))))
|
||||||
|
(home-page "https://github.com/zsh-users/zsh-autosuggestions")
|
||||||
|
(synopsis "Fish-like autosuggestions for zsh")
|
||||||
|
(description "Fish-like fast/unobtrusive autosuggestions for zsh. It suggests commands as you type based on history and completions.")
|
||||||
|
(license license:expat)))
|
||||||
|
|
||||||
|
|
50
sakura/packages/vim.scm
Normal file
50
sakura/packages/vim.scm
Normal file
|
@ -0,0 +1,50 @@
|
||||||
|
(define-module (sakura packages vim)
|
||||||
|
#:use-module ((guix licenses) #:prefix license:)
|
||||||
|
#:use-module (gnu packages)
|
||||||
|
#:use-module (gnu packages vim)
|
||||||
|
#:use-module (gnu packages gcc)
|
||||||
|
#:use-module (guix packages)
|
||||||
|
#:use-module (guix git-download)
|
||||||
|
#:use-module (guix utils)
|
||||||
|
#:use-module (guix build-system trivial))
|
||||||
|
|
||||||
|
(define-public neovim-new
|
||||||
|
(package
|
||||||
|
(inherit neovim)
|
||||||
|
(name "neovim-new")
|
||||||
|
(native-inputs
|
||||||
|
(modify-inputs (package-native-inputs neovim)
|
||||||
|
(prepend gcc-12)))))
|
||||||
|
|
||||||
|
(define-public vim-plug
|
||||||
|
(package
|
||||||
|
(name "vim-plug")
|
||||||
|
(version "0.13.0")
|
||||||
|
(source
|
||||||
|
(origin
|
||||||
|
(method git-fetch)
|
||||||
|
(uri (git-reference
|
||||||
|
(url "https://github.com/junegunn/vim-plug")
|
||||||
|
(commit version)))
|
||||||
|
(sha256
|
||||||
|
(base32
|
||||||
|
"048kk5ar6i5k4nrq0pma6ww7yg64h6aa8d0blgxpq7kfqkwwglfj"))
|
||||||
|
(file-name (git-file-name name version))))
|
||||||
|
(build-system trivial-build-system)
|
||||||
|
(arguments
|
||||||
|
'(#:modules ((guix build utils))
|
||||||
|
#:builder
|
||||||
|
(begin
|
||||||
|
(use-modules (guix build utils))
|
||||||
|
(let* ((out (assoc-ref %outputs "out"))
|
||||||
|
(bin (string-append out "/share/vim"))
|
||||||
|
(source (assoc-ref %build-inputs "source")))
|
||||||
|
(mkdir-p bin)
|
||||||
|
(chdir source)
|
||||||
|
(install-file "plug.vim" bin)))))
|
||||||
|
(home-page "https://github.com/junegunn/vim-plug")
|
||||||
|
(synopsis "Minimalist Vim Plugin Manager")
|
||||||
|
(description "Minimalist Vim Plugin Manager")
|
||||||
|
(license license:expat)))
|
||||||
|
|
||||||
|
|
47
sakura/packages/virtualization.scm
Normal file
47
sakura/packages/virtualization.scm
Normal file
|
@ -0,0 +1,47 @@
|
||||||
|
(define-module (sakura packages virtualization)
|
||||||
|
#:use-module (gnu packages)
|
||||||
|
#:use-module (gnu packages package-management)
|
||||||
|
#:use-module (gnu packages build-tools)
|
||||||
|
#:use-module (gnu packages virtualization)
|
||||||
|
#:use-module (gnu packages firmware)
|
||||||
|
#:use-module (guix packages)
|
||||||
|
#:use-module (guix utils)
|
||||||
|
#:use-module (guix gexp))
|
||||||
|
|
||||||
|
(define-public libvirt-ovmf
|
||||||
|
(package
|
||||||
|
(inherit libvirt)
|
||||||
|
(name "libvirt-ovmf")
|
||||||
|
(inputs
|
||||||
|
(modify-inputs (package-inputs libvirt)
|
||||||
|
(append qemu)))
|
||||||
|
(arguments
|
||||||
|
(substitute-keyword-arguments (package-arguments libvirt)
|
||||||
|
((#:phases phases)
|
||||||
|
#~(modify-phases #$phases
|
||||||
|
(add-after 'install 'install-uefi
|
||||||
|
(lambda _
|
||||||
|
(let ((fmw (string-append #$output "/share/qemu")))
|
||||||
|
(mkdir-p fmw)
|
||||||
|
(copy-recursively #$(file-append qemu "/share/qemu") fmw))
|
||||||
|
))
|
||||||
|
))))))
|
||||||
|
|
||||||
|
(define-public virt-manager-ovmf
|
||||||
|
(package
|
||||||
|
(inherit virt-manager)
|
||||||
|
(name "virt-manager-ovmf")
|
||||||
|
(inputs
|
||||||
|
(modify-inputs (package-inputs virt-manager)
|
||||||
|
(append qemu)))
|
||||||
|
(arguments
|
||||||
|
(substitute-keyword-arguments (package-arguments virt-manager)
|
||||||
|
((#:phases phases)
|
||||||
|
#~(modify-phases #$phases
|
||||||
|
(add-after 'install 'install-uefi
|
||||||
|
(lambda _
|
||||||
|
(let ((fmw (string-append #$output "/share/qemu")))
|
||||||
|
(mkdir-p fmw)
|
||||||
|
(copy-recursively #$(file-append qemu "/share/firmware") fmw))
|
||||||
|
))
|
||||||
|
))))))
|
224
sakura/packages/wm.scm
Normal file
224
sakura/packages/wm.scm
Normal file
|
@ -0,0 +1,224 @@
|
||||||
|
(define-module (sakura packages wm)
|
||||||
|
#:use-module ((guix licenses) #:prefix license:)
|
||||||
|
#:use-module (gnu packages)
|
||||||
|
#:use-module (gnu packages gl)
|
||||||
|
#:use-module (gnu packages wm)
|
||||||
|
#:use-module (gnu packages stb)
|
||||||
|
#:use-module (gnu packages gcc)
|
||||||
|
#:use-module (gnu packages sdl)
|
||||||
|
#:use-module (gnu packages xorg)
|
||||||
|
#:use-module (gnu packages xdisorg)
|
||||||
|
#:use-module (gnu packages maths)
|
||||||
|
#:use-module (gnu packages image)
|
||||||
|
#:use-module (gnu packages cmake)
|
||||||
|
#:use-module (gnu packages linux)
|
||||||
|
#:use-module (gnu packages vulkan)
|
||||||
|
#:use-module (gnu packages python)
|
||||||
|
#:use-module (gnu packages pciutils)
|
||||||
|
#:use-module (gnu packages benchmark)
|
||||||
|
#:use-module (gnu packages pkg-config)
|
||||||
|
#:use-module (gnu packages freedesktop)
|
||||||
|
#:use-module (gnu packages version-control)
|
||||||
|
#:use-module (guix download)
|
||||||
|
#:use-module (guix packages)
|
||||||
|
#:use-module (guix gexp)
|
||||||
|
#:use-module (guix git-download)
|
||||||
|
#:use-module (guix build utils)
|
||||||
|
#:use-module (guix build-system meson)
|
||||||
|
#:use-module (guix utils))
|
||||||
|
|
||||||
|
|
||||||
|
(define-public swaylock-effects-new
|
||||||
|
(package
|
||||||
|
(inherit swaylock-effects)
|
||||||
|
(name "swaylock-effects-new")
|
||||||
|
(version "1.7.0.0")
|
||||||
|
(source (origin
|
||||||
|
(method git-fetch)
|
||||||
|
(uri (git-reference
|
||||||
|
(url "https://github.com/jirutka/swaylock-effects")
|
||||||
|
(commit (string-append "v" version))))
|
||||||
|
(sha256
|
||||||
|
(base32
|
||||||
|
"0cgpbzdpxj6bbpa8jwql1snghj21mhryyvj6sk46g66lqvwlrqbj"))))))
|
||||||
|
|
||||||
|
|
||||||
|
(define-public waybar-new
|
||||||
|
(package
|
||||||
|
(inherit waybar)
|
||||||
|
(name "waybar-new")
|
||||||
|
(version "0.11.0")
|
||||||
|
(source
|
||||||
|
(origin
|
||||||
|
(method git-fetch)
|
||||||
|
(uri (git-reference
|
||||||
|
(url "https://github.com/Alexays/Waybar")
|
||||||
|
(commit version)))
|
||||||
|
(file-name (git-file-name name version))
|
||||||
|
(sha256
|
||||||
|
(base32 "1bw6d3bf8rm4mgrbcprxxljfxbyabbj2lwabk2z19r8lhfz38myy"))))
|
||||||
|
(arguments
|
||||||
|
(list
|
||||||
|
#:configure-flags #~(list "--wrap-mode=nodownload" "-Dexperimental=true")))))
|
||||||
|
|
||||||
|
|
||||||
|
(define-public vkroots
|
||||||
|
(let ((commit "d5ef31abc7cb5c69aee4bcb67b10dd543c1ff7ac"))
|
||||||
|
(package
|
||||||
|
(name "vkroots")
|
||||||
|
(version (git-version "" "0" commit))
|
||||||
|
(source
|
||||||
|
(origin
|
||||||
|
(method git-fetch)
|
||||||
|
(uri (git-reference
|
||||||
|
(url "https://github.com/misyltoad/vkroots")
|
||||||
|
(commit commit)))
|
||||||
|
(sha256
|
||||||
|
(base32
|
||||||
|
"0g2mh8l0xzxzr4yjyafzv76n7jk9043dcbf5mpqwpwmjx88m5nc0"))
|
||||||
|
(file-name (git-file-name name version))))
|
||||||
|
(arguments (list
|
||||||
|
#:phases #~(modify-phases %standard-phases
|
||||||
|
(add-after 'unpack 'patch-vulkan
|
||||||
|
(lambda _
|
||||||
|
(substitute* "gen/make_vkroots"
|
||||||
|
(("\\.\\.") (getcwd)))))
|
||||||
|
(add-before 'install 'gen-vkroots
|
||||||
|
(lambda _
|
||||||
|
(invoke "python3"
|
||||||
|
"../source/gen/make_vkroots"
|
||||||
|
"-x"
|
||||||
|
(string-append
|
||||||
|
#$(this-package-native-input "vulkan-headers")
|
||||||
|
"/share/vulkan/registry/vk.xml")))))))
|
||||||
|
(build-system meson-build-system)
|
||||||
|
(native-inputs (list python vulkan-headers))
|
||||||
|
(home-page "https://github.com/misyltoad/vkroots")
|
||||||
|
(description "A stupid simple method of making Vulkan layers, at home! ")
|
||||||
|
(synopsis "A stupid simple method of making Vulkan layers, at home! ")
|
||||||
|
(license license:expat))))
|
||||||
|
|
||||||
|
|
||||||
|
(define-public libliftoff-0.4
|
||||||
|
(package
|
||||||
|
(inherit libliftoff)
|
||||||
|
(name "libliftoff")
|
||||||
|
(version "0.4.1")
|
||||||
|
(source (origin
|
||||||
|
(method git-fetch)
|
||||||
|
(uri (git-reference
|
||||||
|
(url "https://gitlab.freedesktop.org/emersion/libliftoff")
|
||||||
|
(commit (string-append "v" version))))
|
||||||
|
(file-name (git-file-name name version))
|
||||||
|
(sha256
|
||||||
|
(base32
|
||||||
|
"1ikjp638d655ycaqkdnzhb12d29kkbb3a46lqhbhsfc8vsqj3z1l"))))))
|
||||||
|
|
||||||
|
|
||||||
|
(define reshade-for-gamescope
|
||||||
|
(let ((commit "4245743a8c41abbe3dc73980c1810fe449359bf1"))
|
||||||
|
(origin
|
||||||
|
(method git-fetch)
|
||||||
|
(uri (git-reference
|
||||||
|
(url "https://github.com/Joshua-Ashton/reshade")
|
||||||
|
(commit commit)))
|
||||||
|
(file-name (git-file-name "reshade" commit))
|
||||||
|
(sha256
|
||||||
|
(base32 "1bb5392dfiri8nrxvck1w2jxva8m9xzrgi16rvnvg96l493a538y")))))
|
||||||
|
|
||||||
|
|
||||||
|
(define-public gamescope
|
||||||
|
(package
|
||||||
|
(name "gamescope")
|
||||||
|
(version "3.14.2")
|
||||||
|
(source
|
||||||
|
(origin
|
||||||
|
(method git-fetch)
|
||||||
|
(uri (git-reference
|
||||||
|
(url "https://github.com/ValveSoftware/gamescope")
|
||||||
|
(commit version)))
|
||||||
|
(file-name (git-file-name name version))
|
||||||
|
(sha256
|
||||||
|
(base32 "0x7gh1rr2ismqfkaa4wm7025acjpgmims41iwzdcps5pg8nxmmhh"))))
|
||||||
|
(build-system meson-build-system)
|
||||||
|
(arguments
|
||||||
|
(list #:configure-flags #~(list "-Dpipewire=enabled"
|
||||||
|
"-Denable_openvr_support=false"
|
||||||
|
"-Dforce_fallback_for=[]"
|
||||||
|
(string-append "-Dc_args=-DHWDATA_PNP_IDS=\""
|
||||||
|
#$(this-package-native-input "hwdata")
|
||||||
|
"/share/hwdata/pnp.ids\""))
|
||||||
|
#:tests? #f
|
||||||
|
#:phases
|
||||||
|
#~(modify-phases %standard-phases
|
||||||
|
(add-after 'unpack 'patch-deps
|
||||||
|
(lambda _
|
||||||
|
; copy reshade
|
||||||
|
(delete-file-recursively "src/reshade")
|
||||||
|
(copy-recursively #$reshade-for-gamescope "src/reshade")
|
||||||
|
; path /usr
|
||||||
|
(substitute* "src/reshade_effect_manager.cpp"
|
||||||
|
(("/usr") #$output))
|
||||||
|
; path meson.build
|
||||||
|
(substitute* "src/meson.build"
|
||||||
|
;; patch stb
|
||||||
|
(("dependency\\('stb'\\)")
|
||||||
|
(format #f "declare_dependency(include_directories: ['~a'])"
|
||||||
|
(string-join
|
||||||
|
'#$(map (lambda (label) (this-package-native-input label))
|
||||||
|
(list "stb-image"
|
||||||
|
"stb-image-resize"
|
||||||
|
"stb-image-write"))
|
||||||
|
"','")))
|
||||||
|
;; patch libdisplay-info
|
||||||
|
(("< 0.2.0")
|
||||||
|
(string-append "<= " #$(package-version (this-package-input "libdisplay-info"))))
|
||||||
|
;(("reshade/") (string-append #$reshade-for-gamescope "/"))
|
||||||
|
(("../thirdparty/SPIRV-Headers") #$(this-package-native-input "spirv-headers")))
|
||||||
|
;; include <limits> and <cstdint>
|
||||||
|
(substitute* (find-files "src" "\\.hpp$")
|
||||||
|
(("#pragma once" pragma)
|
||||||
|
(string-append pragma
|
||||||
|
"\n#include <limits>"
|
||||||
|
"\n#include <cstdint>")))
|
||||||
|
)))))
|
||||||
|
(native-inputs (list gcc-13
|
||||||
|
benchmark
|
||||||
|
glslang
|
||||||
|
hwdata
|
||||||
|
pkg-config
|
||||||
|
stb-image
|
||||||
|
stb-image-resize
|
||||||
|
stb-image-write
|
||||||
|
spirv-headers
|
||||||
|
vkroots
|
||||||
|
vulkan-headers
|
||||||
|
wayland-protocols))
|
||||||
|
(inputs (list gcc-13
|
||||||
|
glm
|
||||||
|
libavif
|
||||||
|
libcap
|
||||||
|
libdisplay-info
|
||||||
|
libdrm
|
||||||
|
libinput
|
||||||
|
libliftoff-0.4
|
||||||
|
libx11
|
||||||
|
libxcomposite
|
||||||
|
libxcursor
|
||||||
|
libxdamage
|
||||||
|
libxext
|
||||||
|
libxkbcommon
|
||||||
|
libxmu
|
||||||
|
libxrender
|
||||||
|
libxres
|
||||||
|
libxt
|
||||||
|
libxtst
|
||||||
|
pipewire
|
||||||
|
sdl2
|
||||||
|
vulkan-loader
|
||||||
|
wayland
|
||||||
|
wlroots))
|
||||||
|
(home-page "https://github.com/ValveSoftware/gamescope")
|
||||||
|
(description "SteamOS session compositing window manager")
|
||||||
|
(synopsis "SteamOS session compositing window manager")
|
||||||
|
(license license:bsd-2)))
|
57
sakura/packages/yarn.scm
Normal file
57
sakura/packages/yarn.scm
Normal file
|
@ -0,0 +1,57 @@
|
||||||
|
(define-module (sakura packages yarn)
|
||||||
|
#:use-module (guix packages)
|
||||||
|
#:use-module (guix download)
|
||||||
|
#:use-module (guix build-system gnu)
|
||||||
|
#:use-module ((guix licenses) #:prefix license:)
|
||||||
|
#:use-module (guix utils)
|
||||||
|
#:use-module (gnu packages node))
|
||||||
|
|
||||||
|
(define-public yarn
|
||||||
|
(package
|
||||||
|
(name "yarn")
|
||||||
|
(version "1.22.22")
|
||||||
|
(source
|
||||||
|
(origin
|
||||||
|
(method url-fetch)
|
||||||
|
(uri (string-append
|
||||||
|
"https://github.com/yarnpkg/yarn/releases/download/v"
|
||||||
|
version
|
||||||
|
"/yarn-v"
|
||||||
|
version
|
||||||
|
".tar.gz"))
|
||||||
|
(sha256
|
||||||
|
(base32
|
||||||
|
"181nvynhhrbga3c209v8cd9psk6lqjkc1s9wyzy125lx35j889l8"))))
|
||||||
|
(build-system gnu-build-system)
|
||||||
|
(arguments
|
||||||
|
`(#:phases
|
||||||
|
(modify-phases %standard-phases
|
||||||
|
(delete 'configure)
|
||||||
|
(delete 'check)
|
||||||
|
(delete 'build)
|
||||||
|
(replace 'install
|
||||||
|
(lambda* (#:key outputs #:allow-other-keys)
|
||||||
|
(let* ((out (assoc-ref %outputs "out"))
|
||||||
|
(bin (string-append out "/bin"))
|
||||||
|
(libexec-yarn (string-append out "/libexec/yarn"))
|
||||||
|
(yarn-js (string-append libexec-yarn "/bin/yarn.js")))
|
||||||
|
(mkdir-p bin)
|
||||||
|
(mkdir-p libexec-yarn)
|
||||||
|
(copy-recursively "./" libexec-yarn)
|
||||||
|
(symlink yarn-js (string-append bin "/yarn"))
|
||||||
|
(symlink yarn-js (string-append bin "/yarnpkg"))))))))
|
||||||
|
|
||||||
|
(inputs `(("node" ,node-lts)))
|
||||||
|
(synopsis "Fast, reliable, and secure dependency management")
|
||||||
|
(description
|
||||||
|
"Yarn is a fast, reliable, and secure dependency management. Fast: Yarn
|
||||||
|
caches every package it has downloaded, so it never needs to download the
|
||||||
|
same package again. It also does almost everything concurrently to maximize
|
||||||
|
resource utilization. This means even faster installs. Reliable: Using a
|
||||||
|
detailed but concise lockfile format and a deterministic algorithm for install
|
||||||
|
operations, Yarn is able to guarantee that any installation that works on one
|
||||||
|
system will work exactly the same on another system.
|
||||||
|
Secure: Yarn uses checksums to verify the integrity of every installed package
|
||||||
|
before its code is executed.")
|
||||||
|
(license license:bsd-2)
|
||||||
|
(home-page "https://yarnpkg.com")))
|
63
sakura/services/cow.scm
Normal file
63
sakura/services/cow.scm
Normal file
|
@ -0,0 +1,63 @@
|
||||||
|
(define-module (sakura services cow)
|
||||||
|
#:use-module (gnu services shepherd)
|
||||||
|
#:use-module (guix modules)
|
||||||
|
#:use-module (gnu))
|
||||||
|
|
||||||
|
; repackage the cow store from guix since
|
||||||
|
; guix doesnt export it
|
||||||
|
; >:(
|
||||||
|
|
||||||
|
(define %backing-directory
|
||||||
|
;; Sub-directory used as the backing store for copy-on-write.
|
||||||
|
"/tmp/guix-inst")
|
||||||
|
|
||||||
|
(define cow-store-service-type
|
||||||
|
(shepherd-service-type
|
||||||
|
'cow-store
|
||||||
|
(lambda _
|
||||||
|
(define (import-module? module)
|
||||||
|
;; Since we don't use deduplication support in 'populate-store', don't
|
||||||
|
;; import (guix store deduplication) and its dependencies, which
|
||||||
|
;; includes Guile-Gcrypt.
|
||||||
|
(and (guix-module-name? module)
|
||||||
|
(not (equal? module '(guix store deduplication)))))
|
||||||
|
|
||||||
|
(shepherd-service
|
||||||
|
(requirement '(root-file-system user-processes))
|
||||||
|
(provision '(cow-store))
|
||||||
|
(documentation
|
||||||
|
"Make the store copy-on-write, with writes going to \
|
||||||
|
the given target.")
|
||||||
|
|
||||||
|
;; This is meant to be explicitly started by the user.
|
||||||
|
(auto-start? #f)
|
||||||
|
|
||||||
|
(modules `((gnu build install)
|
||||||
|
,@%default-modules))
|
||||||
|
(start
|
||||||
|
(with-imported-modules (source-module-closure
|
||||||
|
'((gnu build install))
|
||||||
|
#:select? import-module?)
|
||||||
|
#~(case-lambda
|
||||||
|
((target)
|
||||||
|
(mount-cow-store target #$%backing-directory)
|
||||||
|
target)
|
||||||
|
(else
|
||||||
|
;; Do nothing, and mark the service as stopped.
|
||||||
|
#f))))
|
||||||
|
(stop #~(lambda (target)
|
||||||
|
;; Delete the temporary directory, but leave everything
|
||||||
|
;; mounted as there may still be processes using it since
|
||||||
|
;; 'user-processes' doesn't depend on us. The 'user-file-systems'
|
||||||
|
;; service will unmount TARGET eventually.
|
||||||
|
(delete-file-recursively
|
||||||
|
(string-append target #$%backing-directory))))))
|
||||||
|
(description "Make the store copy-on-write, with writes going to \
|
||||||
|
the given target.")))
|
||||||
|
|
||||||
|
(define-public (cow-store-service)
|
||||||
|
"Return a service that makes the store copy-on-write, such that writes go to
|
||||||
|
the user's target storage device rather than on the RAM disk."
|
||||||
|
;; See <http://bugs.gnu.org/18061> for the initial report.
|
||||||
|
(service cow-store-service-type 'mooooh!))
|
||||||
|
|
101
sakura/services/pipewire.scm
Normal file
101
sakura/services/pipewire.scm
Normal file
|
@ -0,0 +1,101 @@
|
||||||
|
(define-module (sakura services pipewire)
|
||||||
|
#:use-module (gnu packages)
|
||||||
|
#:use-module (gnu packages linux)
|
||||||
|
#:use-module (gnu services)
|
||||||
|
#:use-module (gnu services configuration)
|
||||||
|
#:use-module (gnu home services)
|
||||||
|
#:use-module (gnu home services shepherd)
|
||||||
|
#:use-module (sakura packages linux)
|
||||||
|
#:use-module (sakura packages networking)
|
||||||
|
#:use-module (guix gexp))
|
||||||
|
|
||||||
|
(define (home-pipewire-profile-service config)
|
||||||
|
(list pipewire-new
|
||||||
|
wireplumber-new))
|
||||||
|
|
||||||
|
|
||||||
|
(define (home-pipewire-shepherd-service config)
|
||||||
|
(list
|
||||||
|
;; Pipewire daemon
|
||||||
|
(shepherd-service
|
||||||
|
(requirement '(dbus))
|
||||||
|
(provision '(pipewire))
|
||||||
|
(stop #~(make-kill-destructor))
|
||||||
|
(start #~(make-forkexec-constructor
|
||||||
|
(list #$(file-append pipewire-new "/bin/pipewire"))
|
||||||
|
#:log-file (string-append
|
||||||
|
(or (getenv "XDG_LOG_HOME")
|
||||||
|
(format #f "~a/.local/var/log"
|
||||||
|
(getenv "HOME")))
|
||||||
|
"/pipewire.log")
|
||||||
|
#:environment-variables
|
||||||
|
(append (list "DISABLE_RTKIT=0")
|
||||||
|
(default-environment-variables)))))
|
||||||
|
;; Pipewire-pulse
|
||||||
|
(shepherd-service
|
||||||
|
(requirement '(pipewire))
|
||||||
|
(provision '(pipewire-pulse))
|
||||||
|
(stop #~(make-kill-destructor))
|
||||||
|
(start #~(make-forkexec-constructor
|
||||||
|
(list #$(file-append pipewire-new "/bin/pipewire-pulse"))
|
||||||
|
#:log-file (string-append
|
||||||
|
(or (getenv "XDG_LOG_HOME")
|
||||||
|
(format #f "~a/.local/var/log"
|
||||||
|
(getenv "HOME")))
|
||||||
|
"/pipewire-pulse.log")
|
||||||
|
#:environment-variables
|
||||||
|
(append (list "DISABLE_RTKIT=0")
|
||||||
|
(default-environment-variables)))))
|
||||||
|
;; Wireplumber
|
||||||
|
(shepherd-service
|
||||||
|
(requirement '(pipewire))
|
||||||
|
(provision '(wireplumber))
|
||||||
|
(stop #~(make-kill-destructor))
|
||||||
|
(start #~(make-forkexec-constructor
|
||||||
|
(list #$(file-append wireplumber-new "/bin/wireplumber"))
|
||||||
|
#:log-file (string-append
|
||||||
|
(or (getenv "XDG_LOG_HOME")
|
||||||
|
(format #f "~a/.local/var/log"
|
||||||
|
(getenv "HOME")))
|
||||||
|
"/wireplumber.log")
|
||||||
|
#:environment-variables
|
||||||
|
(append (list "DISABLE_RTKIT=0")
|
||||||
|
(default-environment-variables)))))))
|
||||||
|
|
||||||
|
(define (home-pipewire-xdg-configuration-service config)
|
||||||
|
`(("alsa/asoundrc"
|
||||||
|
,(mixed-text-file
|
||||||
|
"asoundrc"
|
||||||
|
#~(string-append
|
||||||
|
"<"
|
||||||
|
#$(file-append
|
||||||
|
pipewire-new "/share/alsa/alsa.conf.d/50-pipewire.conf")
|
||||||
|
">\n<"
|
||||||
|
#$(file-append
|
||||||
|
pipewire-new "/share/alsa/alsa.conf.d/99-pipewire-default.conf")
|
||||||
|
">\n"
|
||||||
|
"
|
||||||
|
pcm_type.pipewire {
|
||||||
|
lib " #$(file-append pipewire-new "/lib/alsa-lib/libasound_module_pcm_pipewire.so")
|
||||||
|
"
|
||||||
|
}
|
||||||
|
ctl_type.pipewire {
|
||||||
|
lib " #$(file-append pipewire-new "/lib/alsa-lib/libasound_module_ctl_pipewire.so")
|
||||||
|
"
|
||||||
|
}
|
||||||
|
")))))
|
||||||
|
|
||||||
|
(define-public home-pipewire-service-type
|
||||||
|
(service-type (name 'home-pipewire)
|
||||||
|
(extensions
|
||||||
|
(list (service-extension
|
||||||
|
home-profile-service-type
|
||||||
|
home-pipewire-profile-service)
|
||||||
|
(service-extension
|
||||||
|
home-shepherd-service-type
|
||||||
|
home-pipewire-shepherd-service)
|
||||||
|
(service-extension
|
||||||
|
home-xdg-configuration-files-service-type
|
||||||
|
home-pipewire-xdg-configuration-service)))
|
||||||
|
(default-value #f)
|
||||||
|
(description "Configures and runs Pipewire and Wireplumber")))
|
Loading…
Reference in a new issue