Last active
April 16, 2017 17:29
-
-
Save ixxie/75b694bac5dabf20e5ec5e1fb20fbc25 to your computer and use it in GitHub Desktop.
New version (flux.sh is in bin/ )
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
set -e | |
# Main flux script | |
# Look for scripts in this directory | |
BINDIR="$(dirname "$0")" | |
LIBDIR="$(dirname ${BINDIR})/lib" | |
# Execute commands | |
# ... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ pkgs, stdenv}: | |
let | |
version = "0.0.1"; | |
in stdenv.mkDerivation | |
{ | |
name = "flux-${version}"; | |
src = ./.; | |
phases = [ "installPhase" ]; | |
installPhase = | |
'' | |
mkdir -p $out/ | |
cp -R ./bin $out/. | |
cp -R ./lib $out/. | |
''; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment