phoebe/default.nix
Peter Jones 193b82189e
Automatically depending on NixOps key services, new Rails sourcedFile option
* Services that need password files will automatically depend on the
    appropriate NixOps key service as necessary.

  * New `sourcedFile` option for Rails applications to load a Bash
    script just before starting the Rails service.  Useful for setting
    secret environment variables.
2019-01-03 14:33:38 -07:00

21 lines
318 B
Nix

{ pkgs ? import <nixpkgs> { }
, ...
}:
pkgs.stdenvNoCC.mkDerivation rec {
name = "phoebe-${version}";
version = "0.1";
src = ./.;
phases =
[ "unpackPhase"
"installPhase"
"fixupPhase"
];
installPhase = ''
mkdir -p $out
cp -rp bin modules lib $out/
chmod 0555 $out/bin/*
'';
}