Skip to content

Instantly share code, notes, and snippets.

@nocoolnametom
Created May 31, 2017 23:24
Show Gist options
  • Save nocoolnametom/af0cd28b02bf00a50b274a1c5cf2f7a0 to your computer and use it in GitHub Desktop.
Save nocoolnametom/af0cd28b02bf00a50b274a1c5cf2f7a0 to your computer and use it in GitHub Desktop.
with import <nixpkgs> {};
with lib;
stdenv.mkDerivation (rec {
version = "1.0.0";
name = "ghost_blog-${version}";
src = fetchFromGitHub {
owner = "nocoolnametom";
repo = "nocoolnametom-local-ghost";
rev = "v${version}";
sha256 = "0dmviwhgqqcc3gg5icy3jhnrl4j7sa5w8vgsc8vzb22xl0f10g1q";
};
meta = {
description = "";
license = stdenv.lib.licenses.gpl3;
platforms = stdenv.lib.platforms.all;
};
buildInputs = [ nodejs ];
buildCommand = ''
npm install ghost
'';
installPhase = ''
mkdir -p $out
cp -r * $out/
cd $out
npm install ghost
'';
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment