mirror of
https://github.com/Noratrieb/nixos.git
synced 2026-01-14 19:55:08 +01:00
9 lines
213 B
Nix
9 lines
213 B
Nix
{ pkgs ? import <nixpkgs> { } }: pkgs.writeShellScriptBin "run" ''
|
|
first="$1"
|
|
if [ -z "$first" ]; then
|
|
echo "error: must provide package name"
|
|
exit 1
|
|
fi
|
|
shift
|
|
nix run nixpkgs#"$first" -- "$@"
|
|
''
|