pkgs: Improve packaging functions to facilitate input override

This commit is contained in:
ulic-youthlic 2025-06-10 15:54:54 +08:00
parent cf83a45191
commit d1c2006e24
Signed by: youthlic
GPG key ID: 63E86C3C14A0D721
4 changed files with 19 additions and 12 deletions

View file

@ -1,7 +1,10 @@
{pkgs}:
pkgs.writeShellApplication {
{
writeShellApplication,
pinentry-all,
}:
writeShellApplication {
name = "pinentry";
runtimeInputs = with pkgs; [
runtimeInputs = [
pinentry-all
];
text = ''

View file

@ -1,8 +1,8 @@
{
pkgs,
radicle-explorer,
rootPath,
}:
(pkgs.radicle-explorer.withConfig {
(radicle-explorer.withConfig {
preferredSeeds = [
{
hostname = "seed.youthlic.fun";

View file

@ -1,16 +1,20 @@
{
pkgs,
spotify,
unzip,
zip,
perl,
symlinkJoin,
srcs,
}: let
inherit (srcs) spotx;
spotifyx = pkgs.spotify.overrideAttrs (final: prev: {
spotifyx = spotify.overrideAttrs (final: prev: {
nativeBuildInputs =
prev.nativeBuildInputs
++ (with pkgs; [
++ [
unzip
zip
perl
]);
];
spotx = spotx.src;
postUnpack = ''
cp $spotx/spotx.sh ./spotx.sh
@ -22,7 +26,7 @@
'';
});
in
pkgs.symlinkJoin {
symlinkJoin {
name = "spotifyx";
paths = [spotifyx];
}

View file

@ -1,10 +1,10 @@
{
pkgs,
srcs,
wshowkeys,
}: let
inherit (srcs) wshowkeys-mao;
in
pkgs.wshowkeys.overrideAttrs (final: prev: {
wshowkeys.overrideAttrs (final: prev: {
inherit (wshowkeys-mao) src;
pname = "wshowkeys-mao";
version = wshowkeys-mao.date + "-" + wshowkeys-mao.version;