9 lines
325 B
Bash
9 lines
325 B
Bash
|
#!/bin/sh
|
||
|
|
||
|
#test -n "$ARCH" || ARCH=i686-embedded
|
||
|
test -n "$ARCH" || ARCH=musl32
|
||
|
test -n "$CHANNEL" || CHANNEL=nixos-24.05
|
||
|
test -n "$1" || { echo "usage: [ARCH=...] [CHANNEL=...] build_nixpkg.sh <packagename>"; exit 0; }
|
||
|
set -x
|
||
|
nix-build '<nixpkgs>' --pure -I nixpkgs=channel:$CHANNEL -A pkgsCross.$ARCH.pkgsStatic.$1
|