Skip to content

Instantly share code, notes, and snippets.

@ixxie
Last active April 16, 2017 17:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ixxie/75b694bac5dabf20e5ec5e1fb20fbc25 to your computer and use it in GitHub Desktop.
Save ixxie/75b694bac5dabf20e5ec5e1fb20fbc25 to your computer and use it in GitHub Desktop.
New version (flux.sh is in bin/ )
#!/usr/bin/env bash
set -e
# Main flux script
# Look for scripts in this directory
BINDIR="$(dirname "$0")"
LIBDIR="$(dirname ${BINDIR})/lib"
# Execute commands
# ...
{ 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