update flake
This commit is contained in:
parent
1ab33067a8
commit
bb43071b42
6 changed files with 53 additions and 35 deletions
57
flake.nix
57
flake.nix
|
|
@ -1,29 +1,32 @@
|
|||
{
|
||||
# FIXME
|
||||
inputs.nixpkgs.url = "github:onny/nixpkgs/phpunit";
|
||||
#inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixos-22.11";
|
||||
|
||||
outputs = { self, nixpkgs }:
|
||||
let
|
||||
pkgs = import nixpkgs { system = "x86_64-linux"; };
|
||||
start =
|
||||
pkgs.writeShellScriptBin "start" ''
|
||||
set -e
|
||||
export QEMU_NET_OPTS="hostfwd=tcp::8080-:80,hostfwd=tcp::1433-:143,hostfwd=tcp::5877-:587"
|
||||
${pkgs.nixos-shell}/bin/nixos-shell vm-nextcloud.nix
|
||||
'';
|
||||
in
|
||||
{
|
||||
devShells.x86_64-linux.default = pkgs.mkShell {
|
||||
packages = with pkgs; [
|
||||
phpPackages.composer
|
||||
phpunit
|
||||
nixos-shell
|
||||
nodejs
|
||||
];
|
||||
};
|
||||
packages = { inherit start; };
|
||||
defaultPackage = start;
|
||||
};
|
||||
}
|
||||
inputs = {
|
||||
# FIXME
|
||||
#inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixos-22.11";
|
||||
nixpkgs.url = "github:onny/nixpkgs/phpunit";
|
||||
# Required for multi platform support
|
||||
flake-utils.url = "github:numtide/flake-utils";
|
||||
};
|
||||
outputs = { self, nixpkgs, flake-utils }:
|
||||
flake-utils.lib.eachDefaultSystem (system:
|
||||
let
|
||||
pkgs = import nixpkgs { inherit system; };
|
||||
start =
|
||||
pkgs.writeShellScriptBin "start" ''
|
||||
set -e
|
||||
export QEMU_NET_OPTS="hostfwd=tcp::8080-:80,hostfwd=tcp::1433-:143,hostfwd=tcp::5877-:587"
|
||||
${pkgs.nixos-shell}/bin/nixos-shell vm-nextcloud.nix
|
||||
'';
|
||||
in
|
||||
{
|
||||
devShell = pkgs.mkShell {
|
||||
packages = with pkgs; [
|
||||
phpPackages.composer
|
||||
phpunit
|
||||
nodejs
|
||||
];
|
||||
};
|
||||
packages = { inherit start; };
|
||||
defaultPackage = start;
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue