changed craft to package

This commit is contained in:
Thilo Billerbeck 2023-05-12 23:26:23 +02:00
parent 81c9d8cdfc
commit 84321246c1
2 changed files with 31 additions and 6 deletions

View file

@ -8,6 +8,8 @@ let
"--ignore-gpu-blocklist" "--ignore-gpu-blocklist"
"--enable-gpu-rasterization" "--enable-gpu-rasterization"
"--enable-zero-copy" "--enable-zero-copy"
"--force-device-scale-factor=1.0"
"--use-gl=desktop"
]; ];
nixGLWrap = import ./utils/nixGLWrap.nix { inherit pkgs lib; }; nixGLWrap = import ./utils/nixGLWrap.nix { inherit pkgs lib; };
in { in {
@ -50,11 +52,6 @@ in {
(builtins.readFile ./scripts/ssh-fix-permissions.sh)) (builtins.readFile ./scripts/ssh-fix-permissions.sh))
(pkgs.writeShellScriptBin "yt-dlp-audio" (pkgs.writeShellScriptBin "yt-dlp-audio"
(builtins.readFile ./scripts/yt-dlp-audio.sh)) (builtins.readFile ./scripts/yt-dlp-audio.sh))
(pkgs.writeShellScriptBin "craft" ((pkgs.fetchFromGitHub { (callPackage pkgs/docker-craft-cms-dev-env.nix { inherit lib; })
owner = "codemonauts";
repo = "docker-craft-cms-dev-env";
rev = "5053d61654bc720fd61e011642e925a99d81baa0";
hash = "sha256-VNL/cyECDx0FSn2xMHMQDbJ3d0y7SEKPZ2EzotQy/PA=";
}) + /bin/craft))
]; ];
} }

View file

@ -0,0 +1,28 @@
{ lib
, stdenv
, fetchFromGitHub
}:
stdenv.mkDerivation rec {
pname = "docker-craft-cms-dev-env";
version = "unstable-2023-04-14";
src = fetchFromGitHub {
owner = "codemonauts";
repo = "docker-craft-cms-dev-env";
rev = "5053d61654bc720fd61e011642e925a99d81baa0";
hash = "sha256-VNL/cyECDx0FSn2xMHMQDbJ3d0y7SEKPZ2EzotQy/PA=";
};
postInstall = ''
mkdir -p $out/bin
cp -r $src/bin/craft $out/bin/craft
'';
meta = with lib; {
description = "Docker image for local development of sites based on Craft CMS";
homepage = "https://github.com/codemonauts/docker-craft-cms-dev-env";
license = licenses.mit;
maintainers = with maintainers; [ ];
};
}