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
'';
}

15
flake.nix Normal file
View File

@@ -0,0 +1,15 @@
{
description = "A very basic flake";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-unstable";
};
outputs = { self, nixpkgs }: {
packages.x86_64-linux.hello = nixpkgs.legacyPackages.x86_64-linux.hello;
packages.x86_64-linux.default = self.packages.x86_64-linux.hello;
};
}

View File

@@ -1 +1,2 @@
finger
#!/bin/sh
last

View File

@@ -1,2 +1,2 @@
#!/bin/sh
uname -pv
uname -pr

View File

@@ -1,2 +1,2 @@
#!/bin/sh
wc -wl /etc/passwd
wc -ml /etc/passwd