Created
April 16, 2017 16:59
-
-
Save ixxie/757382258cad049be23eff116d635108 to your computer and use it in GitHub Desktop.
Nix Command Line Tool
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}: | |
# flux | |
# bin/ | |
# flux.sh | |
# lib/ | |
# subcom1 | |
# subcom2 | |
# ... | |
# flux.nix | |
# default.nix | |
let | |
version = "0.0.1"; | |
in stdenv.mkDerivation | |
{ | |
name = "flux-${version}"; | |
src = ./.; | |
phases = [ "installPhase" ]; | |
installPhase = | |
'' | |
mkdir -p $out/ | |
cp -r ./* $out/. | |
substituteAllInPlace $out/bin/flux.sh | |
''; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment