Browse Source

Throw out all but the blog-related code

master
Danila Fedorin 1 year ago
parent
commit
7612c204e1
  1. 0
      builder.sh
  2. 0
      change_blog_nix.sh
  3. 0
      convert.rb
  4. 25
      custom-crystal/default.nix
  5. 0
      default.nix
  6. 16
      joann-pupper-bot/default.nix
  7. 7
      joann-pupper-bot/git-shards.nix
  8. 26
      joann-pupper-bot/shards.nix
  9. 0
      katexserver.js
  10. 0
      node-env.nix
  11. 0
      node-packages.nix
  12. 7
      overlay.nix
  13. 0
      packages.json
  14. 24
      pegasus/default.nix
  15. 0
      required-packages.nix
  16. 0
      update_blog.sh

0
blog/builder.sh → builder.sh

0
blog/change_blog_nix.sh → change_blog_nix.sh

0
blog/convert.rb → convert.rb

25
custom-crystal/default.nix

@ -1,25 +0,0 @@
{ stdenv, lib, linkFarm, fetchgit, fetchFromGitHub }:
{ crystal,
gitShardsFile ? null,
lockFile ? null,
shardsFile ? null, ...}@args:
let
buildArgs = builtins.removeAttrs args [ "crystal" ];
githubLinks = lib.mapAttrsToList (name: value: {
inherit name;
path = fetchFromGitHub value;
}) (import shardsFile);
gitLinks = lib.mapAttrsToList (name: value: {
inherit name;
path = fetchgit { inherit (value) url rev sha256; };
}) (import gitShardsFile);
crystalLib = linkFarm "crystal-lib" (githubLinks ++ gitLinks);
configurePhase = args.configurePhase or lib.concatStringsSep "\n" ([
"runHook preConfigure"
] ++ lib.optional (lockFile != null) "ln -s ${lockFile} ./shard.lock"
++ lib.optional (shardsFile != null) "ln -s ${crystalLib} lib"
++ [ "runHook postConfigure "]);
in
crystal.buildCrystalPackage (buildArgs // { inherit configurePhase; })

0
blog/default.nix → default.nix

16
joann-pupper-bot/default.nix

@ -1,16 +0,0 @@
{ stdenv, fetchgit, crystal, customCrystal, sqlite, openssl, pkg-config }:
let
url = "https://dev.danilafe.com/Crystal-Bots/joann-pupper-bot";
rev = "8d90b052a001a6101dc691a907a16de4fb0a26ee";
sha256 = "0r2xyfqj9v73y9il90f2mp2x5h79nbv4yhfsh79kn1w0li6nlx3s";
in
customCrystal {
inherit crystal;
pname = "joann-pupper-bot";
version = rev;
src = fetchgit { inherit url rev sha256; };
shardsFile = ./shards.nix;
gitShardsFile = ./git-shards.nix;
crystalBinaries.joann-pupper-bot.src = "src/joann-pupper-bot.cr";
buildInputs = [ sqlite openssl pkg-config ];
}

7
joann-pupper-bot/git-shards.nix

@ -1,7 +0,0 @@
{
telepathy = {
url = "https://dev.danilafe.com/Crystal-Bots/telepathy";
rev = "v0.1.2";
sha256 = "1vis5ncfdjapxqm2q39bd0iwqrkim2wbn84xi3fydshhpkznqh88";
};
}

26
joann-pupper-bot/shards.nix

@ -1,26 +0,0 @@
{
cron_parser = {
owner = "kostya";
repo = "cron_parser";
rev = "v0.3.0";
sha256 = "0ss5zhlvq8kcmc8j2msigpayrx0nys44j66d6smdnql06bncrm13";
};
cron_scheduler = {
owner = "kostya";
repo = "cron_scheduler";
rev = "v0.3.0";
sha256 = "15lk8x7p5nq388ll7g5al9mflr1723kj6akrj9fadqf9535i6rqc";
};
db = {
owner = "crystal-lang";
repo = "crystal-db";
rev = "v0.9.0";
sha256 = "0am5njx9g0m7lqmzs4qpgrnqq2pl9yb9h6jfrwgarx15c4jdrrzd";
};
sqlite3 = {
owner = "crystal-lang";
repo = "crystal-sqlite3";
rev = "v0.16.0";
sha256 = "1kqbp642gskffwpa98l08s3chx0d49wngjsh0ax7pbjn9kgf7sq5";
};
}

0
blog/katexserver.js → katexserver.js

0
blog/node-env.nix → node-env.nix

0
blog/node-packages.nix → node-packages.nix

7
overlay.nix

@ -1,7 +0,0 @@
self: super:
{
pegasus = super.callPackage ./pegasus/default.nix { crystal = super.crystal_0_31; };
blog = super.callPackage ./blog/default.nix {};
customCrystal = super.callPackage ./custom-crystal/default.nix {};
}

0
blog/packages.json → packages.json

24
pegasus/default.nix

@ -1,24 +0,0 @@
{ stdenv, crystal, fetchFromGitHub }:
let
version = "0489d47b191ecf8501787355b948801506e7c70f";
src = fetchFromGitHub {
owner = "DanilaFe";
repo = "pegasus";
rev = version;
sha256 = "097m7l16byis07xlg97wn5hdsz9k6c3h1ybzd2i7xhkj24kx230s";
};
in
crystal.buildCrystalPackage {
pname = "pegasus";
inherit version;
inherit src;
crystalBinaries.pegasus.src = "src/pegasus.cr";
crystalBinaries.pegasus-dot.src = "src/tools/dot/pegasus_dot.cr";
crystalBinaries.pegasus-sim.src = "src/tools/sim/pegasus_sim.cr";
crystalBinaries.pegasus-c.src = "src/generators/c/pegasus_c.cr";
crystalBinaries.pegasus-csem.src = "src/generators/csem/pegasus_csem.cr";
crystalBinaries.pegasus-crystal.src = "src/generators/crystal/pegasus_crystal.cr";
crystalBinaries.pegasus-crystalsem.src = "src/generators/crystalsem/pegasus_crystalsem.cr";
}

0
blog/required-packages.nix → required-packages.nix

0
blog/update_blog.sh → update_blog.sh

Loading…
Cancel
Save