refactor: rename shell script templates

This commit is contained in:
Kiana Sheibani 2025-11-24 02:50:45 -05:00
parent cfcc6c68a6
commit f245106449
Signed by: toki
GPG key ID: 6CB106C25E86A9F7
7 changed files with 2 additions and 2 deletions

View file

@ -0,0 +1,17 @@
{
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
systems.url = "github:nix-systems/default";
};
outputs = { self, nixpkgs, systems, ... }:
let eachSystem = nixpkgs.lib.genAttrs (import systems);
in {
packages = eachSystem (system:
let pkgs = nixpkgs.legacyPackages.${system};
in {
hello = pkgs.callPackage ./package.nix {};
default = self.packages.${system}.hello;
});
};
}

3
bash/script/nixpkgs/hello Executable file
View file

@ -0,0 +1,3 @@
#!/usr/bin/env bash
echo "Hello, World!"

View file

@ -0,0 +1,17 @@
{ stdenvNoCC
, bash
}:
stdenvNoCC.mkDerivation {
pname = "hello";
version = "0.1";
src = ./.;
buildInputs = [ bash ];
installPhase = ''
mkdir -p $out/bin
cp hello $out/bin
'';
}