Fix lock file + documentation tweaks

This commit is contained in:
Sander van der Burg 2017-09-19 23:50:21 +02:00
parent 930f8062c8
commit 914f54f33d
3 changed files with 11 additions and 12 deletions

View file

@ -17,9 +17,11 @@ This package requires the following packages to be installed:
* [Nix package manager](http://nixos.org/nix)
* The Nix prefetch scripts. They can be installed from Nix packages by running:
$ nix-env -f '<nixpkgs>' -iA nix-prefetch-scripts
```bash
$ nix-env -f '<nixpkgs>' -iA nix-prefetch-scripts
```
Consult the Nix documentation for the installation instructions.
Consult the Nix documentation for detailed installation instructions.
Usage
=====

15
composer.lock generated
View file

@ -8,17 +8,17 @@
"packages": [
{
"name": "svanderburg/pndp",
"version": "0.0.1",
"version": "v0.0.1",
"source": {
"type": "git",
"url": "https://github.com/svanderburg/pndp.git",
"reference": "99b0904e0f2efb35b8f012892912e0d171e9c2da"
},
"dist": {
"type": "path",
"type": "zip",
"url": "https://api.github.com/repos/svanderburg/pndp/zipball/99b0904e0f2efb35b8f012892912e0d171e9c2da",
"reference": "99b0904e0f2efb35b8f012892912e0d171e9c2da",
"shasum": null
"shasum": ""
},
"bin": [
"bin/pndp-build"
@ -29,11 +29,7 @@
"PNDP\\": "src/PNDP"
}
},
"autoload-dev": {
"psr-4": {
"Pkgs\\": "tests/Pkgs"
}
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"MIT"
],
@ -44,7 +40,8 @@
"homepage": "http://sandervanderburg.nl"
}
],
"description": "PNDP: An internal DSL for Nix in PHP"
"description": "PNDP: An internal DSL for Nix in PHP",
"time": "2017-09-11T21:11:09+00:00"
}
],
"packages-dev": [],

View file

@ -58,7 +58,7 @@ class Composer
$composerPath = shell_exec("nix-build --no-out-link -E 'let pkgs = import <nixpkgs> {}; composerEnv = import ".__DIR__."/composer-env.nix { inherit (pkgs) stdenv writeTextFile fetchurl php unzip; }; in composerEnv.composer'");
if($composerPath === false)
throw new Exception("Cannot deploy the composer Nix package!");
$composerExecutable = substr($composerPath, 0, -1)."/bin/composer";
$result = shell_exec($composerExecutable." ".$params." install");