26 lines
404 B
Nix
26 lines
404 B
Nix
|
{
|
||
|
perSystem =
|
||
|
{ config
|
||
|
, pkgs
|
||
|
, ...
|
||
|
}:
|
||
|
let
|
||
|
name = builtins.baseNameOf ./.;
|
||
|
script = config.writers.writePureShellScriptBin
|
||
|
name
|
||
|
[
|
||
|
pkgs.bash
|
||
|
pkgs.coreutils
|
||
|
pkgs.git
|
||
|
pkgs.tea
|
||
|
pkgs.openssh
|
||
|
]
|
||
|
''
|
||
|
bash ${./script.sh}
|
||
|
'';
|
||
|
in
|
||
|
{
|
||
|
packages.${name} = script;
|
||
|
};
|
||
|
}
|