Skip to content

Commit

Permalink
archtika: init at 1.0.1
Browse files Browse the repository at this point in the history
archtika: fix allow-import-from-derivation error for npm

archtika: fix package formatting

archtika: refactor package

archtika: update GitHub hash for version 1.0.1
  • Loading branch information
thiloho committed Dec 25, 2024
1 parent 1f5a376 commit d70ee09
Showing 1 changed file with 59 additions and 0 deletions.
59 changes: 59 additions & 0 deletions pkgs/by-name/ar/archtika/package.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
{
lib,
stdenv,
buildNpmPackage,
importNpmLock,
symlinkJoin,
fetchFromGitHub,
}:

let
version = "1.0.1";

src = fetchFromGitHub {
owner = "archtika";
repo = "archtika";
rev = "v${version}";
hash = "sha256-IDSh1YeQiVRdfY3pUM1RDXpZDT/7vXDx4EYH8gEmmj4=";
};

web = buildNpmPackage {
name = "web-app";
src = "${src}/web-app";
npmDepsHash = "sha256-RTyo7K/Hr1hBGtcBKynrziUInl91JqZl84NkJg16ufA=";
npmFlags = [ "--legacy-peer-deps" ];
installPhase = ''
mkdir -p $out/web-app
cp package.json $out/web-app
cp -r node_modules $out/web-app
cp -r build/* $out/web-app
cp -r template-styles $out/web-app
'';
};

api = stdenv.mkDerivation {
name = "api";
src = "${src}/rest-api";
installPhase = ''
mkdir -p $out/rest-api/db/migrations
cp -r db/migrations/* $out/rest-api/db/migrations
'';
};
in
symlinkJoin {
pname = "archtika";
version = version;

paths = [
web
api
];

meta = {
description = "A modern, performant and lightweight CMS";
homepage = "https://archtika.com";
license = lib.licenses.gpl3;
maintainers = [ lib.maintainers.thiloho ];
platforms = lib.platforms.unix;
};
}

0 comments on commit d70ee09

Please sign in to comment.