Compare commits

..

2 commits

Author SHA1 Message Date
5e489fb7c8 home/git: add alias for git tree-sync sync
I decided to implement this as a shell alias, to allow directly
referencing the package here instead of relying on it to be in path.
2026-02-27 23:45:05 +01:00
a87738a2ff fc-scripts: more fine-grained packaging
It makes sense to put each individual script into its own derivation, as
some of the scripts require certain other dependencies that others
don't.
2026-02-27 23:45:05 +01:00

View file

@ -20,6 +20,7 @@ let
{ {
pname, pname,
propagatedBuildInputs, propagatedBuildInputs,
python ? python3,
... ...
}@args: }@args:
stdenvNoCC.mkDerivation (finalAttrs: { stdenvNoCC.mkDerivation (finalAttrs: {
@ -30,7 +31,7 @@ let
inherit src version; # not passed via function args, but can be overridden later via overrideAttrs inherit src version; # not passed via function args, but can be overridden later via overrideAttrs
dontBuild = true; dontBuild = true;
dontConfigure = true; dontConfigure = true;
buildInputs = [ python3 ]; buildInputs = [ python ]; # the python interpreter utilised by patchShebangs
nativeBuildInputs = [ makeWrapper ]; nativeBuildInputs = [ makeWrapper ];
installPhase = '' installPhase = ''
@ -62,10 +63,10 @@ in
mosh-tunnel = mkFcScriptDrv { mosh-tunnel = mkFcScriptDrv {
pname = "mosh-tunnel"; pname = "mosh-tunnel";
propagatedBuildInputs = [ propagatedBuildInputs = [
(python3.withPackages (ps: [ ps.asyncio-dgram ]))
mosh mosh
openssh openssh
]; ];
python = python3.withPackages (ps: [ ps.asyncio-dgram ]);
}; };
mosh-dualstack-proxy = mkFcScriptDrv { mosh-dualstack-proxy = mkFcScriptDrv {
pname = "mosh-dualstack-proxy"; pname = "mosh-dualstack-proxy";