This commit is contained in:
0qln
2025-10-20 11:16:14 +02:00
parent ed4aa3688d
commit 9247d8235d
5 changed files with 42 additions and 3 deletions

23
default.nix Normal file
View File

@@ -0,0 +1,23 @@
with import <nixpkgs> {}; let
let isDir
let pDirs = builtins.readDir ./.;
script1 = writeShellScriptBin "script1" ''
echo "Hello from script1"
'';
script2 = writeShellScriptBin "script2" ''
echo "Hello from script2"
'';
in
stdenv.mkDerivation {
name = "all-scripts";
buildInputs = [
script1
script2
];
# Or use buildEnv to create a combined package
buildCommand = ''
mkdir -p $out
'';
}