init
This commit is contained in:
commit
0e79899546
8 changed files with 229 additions and 0 deletions
28
package.nix
Normal file
28
package.nix
Normal file
|
@ -0,0 +1,28 @@
|
|||
{
|
||||
lib,
|
||||
stdenv,
|
||||
rust-http-server,
|
||||
...
|
||||
}:
|
||||
stdenv.mkDerivation {
|
||||
name = "best-blog";
|
||||
src = ./.;
|
||||
nativeBuildInputs = [];
|
||||
buildInputs = [rust-http-server.packages.x86_64-linux.default];
|
||||
configurePhase = '''';
|
||||
buildPhase = '''';
|
||||
installPhase = ''
|
||||
mkdir -p $out/bin
|
||||
cp -r ./* $out/
|
||||
echo "#!/usr/bin/env bash" > bestblog
|
||||
echo "cd $(echo $out)/src/" >> bestblog
|
||||
echo "${lib.getExe rust-http-server.packages.x86_64-linux.default} --port 9345" >> bestblog
|
||||
chmod a+x bestblog
|
||||
cp bestblog $out/bin/bestblog
|
||||
'';
|
||||
meta = {
|
||||
mainProgram = "bestblog";
|
||||
description = "bare minimum blog";
|
||||
homepage = "https://mtgmonkey.net";
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue