This file contains hidden or 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 = "Typst documents"; | |
inputs = { | |
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable"; | |
systems.url = "github:nix-systems/default"; | |
typst-dev.url = "github:typst/typst"; | |
typst-packages = { | |
flake = false; | |
url = "github:typst/packages"; |
This file contains hidden or 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 build .#typst-lsp -L | |
typst-lsp> Running phase: unpackPhase | |
typst-lsp> unpacking source archive /nix/store/p1chff6pkwdvrgqxjplxvndbf0p34y46-source | |
typst-lsp> source root is source | |
typst-lsp> Executing cargoSetupPostUnpackHook | |
typst-lsp> Finished cargoSetupPostUnpackHook | |
typst-lsp> Running phase: patchPhase | |
typst-lsp> Executing cargoSetupPostPatchHook | |
typst-lsp> Validating consistency between /build/source/Cargo.lock and /build/cargo-vendor-dir/Cargo.lock | |
typst-lsp> Finished cargoSetupPostPatchHook |
This file contains hidden or 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
<?php | |
declare(strict_types=1); | |
namespace loophp\ComposerStripNondeterminism\Service; | |
use FilesystemIterator; | |
use loophp\ComposerStripNondeterminism\Iterator\SortedIterator; | |
use RecursiveDirectoryIterator; | |
use RecursiveIteratorIterator; |
This file contains hidden or 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; } { |
This file contains hidden or 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 | |
{ |
This file contains hidden or 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; |
This file contains hidden or 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 | |
]); |
This file contains hidden or 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"; |
This file contains hidden or 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"; |
This file contains hidden or 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; | |
}; | |
}; |