mirror of
https://github.com/thilobillerbeck/dotfiles.git
synced 2024-11-22 07:58:49 +01:00
changed craft to package
This commit is contained in:
parent
81c9d8cdfc
commit
84321246c1
2 changed files with 31 additions and 6 deletions
|
@ -8,6 +8,8 @@ let
|
|||
"--ignore-gpu-blocklist"
|
||||
"--enable-gpu-rasterization"
|
||||
"--enable-zero-copy"
|
||||
"--force-device-scale-factor=1.0"
|
||||
"--use-gl=desktop"
|
||||
];
|
||||
nixGLWrap = import ./utils/nixGLWrap.nix { inherit pkgs lib; };
|
||||
in {
|
||||
|
@ -50,11 +52,6 @@ in {
|
|||
(builtins.readFile ./scripts/ssh-fix-permissions.sh))
|
||||
(pkgs.writeShellScriptBin "yt-dlp-audio"
|
||||
(builtins.readFile ./scripts/yt-dlp-audio.sh))
|
||||
(pkgs.writeShellScriptBin "craft" ((pkgs.fetchFromGitHub {
|
||||
owner = "codemonauts";
|
||||
repo = "docker-craft-cms-dev-env";
|
||||
rev = "5053d61654bc720fd61e011642e925a99d81baa0";
|
||||
hash = "sha256-VNL/cyECDx0FSn2xMHMQDbJ3d0y7SEKPZ2EzotQy/PA=";
|
||||
}) + /bin/craft))
|
||||
(callPackage pkgs/docker-craft-cms-dev-env.nix { inherit lib; })
|
||||
];
|
||||
}
|
||||
|
|
28
pkgs/docker-craft-cms-dev-env.nix
Normal file
28
pkgs/docker-craft-cms-dev-env.nix
Normal 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; [ ];
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue