forked from mirrors/nixpkgs
33 lines
530 B
Nix
33 lines
530 B
Nix
{ yarn2nix-moretea
|
|
, fetchFromGitHub
|
|
, meta
|
|
}:
|
|
|
|
yarn2nix-moretea.mkYarnPackage rec {
|
|
pname = "listmonk-frontend";
|
|
version = "2.2.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "knadh";
|
|
repo = "listmonk";
|
|
rev = "v${version}";
|
|
sha256 = "sha256-dtIM0dkr8y+GbyCqrBlR5VRq6qMiZdmQyFvIoVY1eUg=";
|
|
};
|
|
|
|
packageJSON = ./package.json;
|
|
yarnLock = ./yarn.lock;
|
|
yarnNix = ./yarn.nix;
|
|
|
|
installPhase = ''
|
|
cd deps/listmonk-frontend/frontend
|
|
npm run build
|
|
|
|
mv dist $out
|
|
'';
|
|
|
|
doDist = false;
|
|
|
|
|
|
inherit meta;
|
|
}
|