pkgs: Improve packaging functions to facilitate input override
This commit is contained in:
parent
cf83a45191
commit
d1c2006e24
4 changed files with 19 additions and 12 deletions
|
|
@ -1,7 +1,10 @@
|
||||||
{pkgs}:
|
{
|
||||||
pkgs.writeShellApplication {
|
writeShellApplication,
|
||||||
|
pinentry-all,
|
||||||
|
}:
|
||||||
|
writeShellApplication {
|
||||||
name = "pinentry";
|
name = "pinentry";
|
||||||
runtimeInputs = with pkgs; [
|
runtimeInputs = [
|
||||||
pinentry-all
|
pinentry-all
|
||||||
];
|
];
|
||||||
text = ''
|
text = ''
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,8 @@
|
||||||
{
|
{
|
||||||
pkgs,
|
radicle-explorer,
|
||||||
rootPath,
|
rootPath,
|
||||||
}:
|
}:
|
||||||
(pkgs.radicle-explorer.withConfig {
|
(radicle-explorer.withConfig {
|
||||||
preferredSeeds = [
|
preferredSeeds = [
|
||||||
{
|
{
|
||||||
hostname = "seed.youthlic.fun";
|
hostname = "seed.youthlic.fun";
|
||||||
|
|
|
||||||
|
|
@ -1,16 +1,20 @@
|
||||||
{
|
{
|
||||||
pkgs,
|
spotify,
|
||||||
|
unzip,
|
||||||
|
zip,
|
||||||
|
perl,
|
||||||
|
symlinkJoin,
|
||||||
srcs,
|
srcs,
|
||||||
}: let
|
}: let
|
||||||
inherit (srcs) spotx;
|
inherit (srcs) spotx;
|
||||||
spotifyx = pkgs.spotify.overrideAttrs (final: prev: {
|
spotifyx = spotify.overrideAttrs (final: prev: {
|
||||||
nativeBuildInputs =
|
nativeBuildInputs =
|
||||||
prev.nativeBuildInputs
|
prev.nativeBuildInputs
|
||||||
++ (with pkgs; [
|
++ [
|
||||||
unzip
|
unzip
|
||||||
zip
|
zip
|
||||||
perl
|
perl
|
||||||
]);
|
];
|
||||||
spotx = spotx.src;
|
spotx = spotx.src;
|
||||||
postUnpack = ''
|
postUnpack = ''
|
||||||
cp $spotx/spotx.sh ./spotx.sh
|
cp $spotx/spotx.sh ./spotx.sh
|
||||||
|
|
@ -22,7 +26,7 @@
|
||||||
'';
|
'';
|
||||||
});
|
});
|
||||||
in
|
in
|
||||||
pkgs.symlinkJoin {
|
symlinkJoin {
|
||||||
name = "spotifyx";
|
name = "spotifyx";
|
||||||
paths = [spotifyx];
|
paths = [spotifyx];
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,10 +1,10 @@
|
||||||
{
|
{
|
||||||
pkgs,
|
|
||||||
srcs,
|
srcs,
|
||||||
|
wshowkeys,
|
||||||
}: let
|
}: let
|
||||||
inherit (srcs) wshowkeys-mao;
|
inherit (srcs) wshowkeys-mao;
|
||||||
in
|
in
|
||||||
pkgs.wshowkeys.overrideAttrs (final: prev: {
|
wshowkeys.overrideAttrs (final: prev: {
|
||||||
inherit (wshowkeys-mao) src;
|
inherit (wshowkeys-mao) src;
|
||||||
pname = "wshowkeys-mao";
|
pname = "wshowkeys-mao";
|
||||||
version = wshowkeys-mao.date + "-" + wshowkeys-mao.version;
|
version = wshowkeys-mao.date + "-" + wshowkeys-mao.version;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue