mirror of
https://github.com/nix-community/dream2nix.git
synced 2024-12-23 14:31:55 +03:00
5914156eb7
This makes hte examples more standalone and suitable for copy & paste
11 lines
310 B
Bash
Executable File
11 lines
310 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
# find script directory
|
|
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
|
|
|
# find examples directory
|
|
packagesDir="$DIR/../examples/packages"
|
|
|
|
# iterate over all double nested package directories and copy the flake file there
|
|
echo "$packagesDir"/*/*/ | xargs -n 1 cp "$DIR"/flake.nix
|