View flake.nix
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
description = "PHP development shell"; | |
inputs = { | |
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable"; | |
systems.url = "github:nix-systems/default"; | |
nixpkgs_php7429.url = "github:NixOS/nixpkgs/1d8b8365a02efbf668311dc9db06cb98d49e7302"; | |
}; | |
outputs = inputs @ { self, flake-parts, ... }: flake-parts.lib.mkFlake { inherit inputs; } { |
View flake.nix
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable"; | |
inputs.php7429.url = "github:NixOS/nixpkgs/1d8b8365a02efbf668311dc9db06cb98d49e7302"; | |
outputs = { self, nixpkgs, php7429 }: | |
let | |
pkgs = import nixpkgs { system = "x86_64-linux"; }; | |
nixpkgs_php7429 = import php7429 { system = "x86_64-linux"; }; | |
in | |
{ |
View flake.nix
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
inputs = { | |
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable"; | |
phps.url = "github:fossar/nix-phps"; | |
devenv.url = "github:cachix/devenv"; | |
systems.url = "github:nix-systems/default"; | |
}; | |
outputs = inputs @ { self, flake-parts, ... }: flake-parts.lib.mkFlake { inherit inputs; } { | |
systems = import inputs.systems; |
View python311-venv.nix
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ pkgs ? import <nixpkgs> {} }: | |
(pkgs.buildFHSUserEnv { | |
name = "python-3.11-pip"; | |
targetPkgs = pkgs: (with pkgs; [ | |
python311 | |
python311Packages.pip | |
python311Packages.virtualenv | |
python311Packages.oracledb | |
]); |
View flake.nix
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
inputs = { | |
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable"; | |
systems.url = "github:nix-systems/default"; | |
php-src-master = { | |
url = "github:php/php-src/master"; | |
flake = false; | |
}; | |
php-src-81 = { | |
url = "github:php/php-src/PHP-8.1"; |
View flake.nix
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
```nix | |
packages = let | |
src = ./.; | |
php = pkgs.php81; | |
in { | |
app = php.buildComposerProject { | |
inherit src; | |
pname = "app-demo"; | |
version = "1.0.0"; |
View flake.nix
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
inputs = { | |
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable"; | |
systems.url = "github:nix-systems/default"; | |
flake-compat.url = "github:nix-community/flake-compat"; | |
php-active = { | |
url = "https://www.php.net/releases/active"; | |
flake = false; | |
}; | |
}; |
View flake.nix
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
inputs = { | |
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable"; | |
systems.url = "github:nix-systems/default"; | |
pear = { | |
url = "https://pear.php.net/install-pear-nozlib.phar"; | |
flake = false; | |
}; | |
}; |
View default.nix
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ stdenv | |
, lib | |
, makeBinaryWrapper | |
, fetchFromGitHub | |
, fetchurl | |
, cmake | |
, glew | |
, SDL2 | |
, zlib | |
, minizip |
View .gitlab-ci.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
image: ${CI_DEPENDENCY_PROXY_GROUP_IMAGE_PREFIX}/nixos/nix:2.17.0 | |
variables: | |
COMPOSER_ALLOW_SUPERUSER: 1 | |
default: | |
before_script: | |
- echo experimental-features = nix-command flakes >> /etc/nix/nix.conf | |
- echo access-tokens = github.com=${GITHUB_TOKEN} >> /etc/nix/nix.conf |
NewerOlder