Lucian Pricop
4 years ago
8 changed files with 80 additions and 74 deletions
-
BINchannel.tar.bz2
-
66composer.json
-
9default.nix
-
0pkgs/composer-env.nix
-
21pkgs/earlier.nix
-
4pkgs/sandd-php-packages.nix
-
28pkgs/sandd.nix
-
26readme.md
@ -1,66 +0,0 @@ |
|||
{ |
|||
"name": "laravel/laravel", |
|||
"description": "The Laravel Framework.", |
|||
"keywords": ["framework", "laravel"], |
|||
"license": "MIT", |
|||
"type": "project", |
|||
"require": { |
|||
"php": ">=7.1.3", |
|||
"doctrine/dbal": "^2.9", |
|||
"enqueue/amqp-bunny": "^0.10.0", |
|||
"enqueue/simple-client": "^0.10.0", |
|||
"fideloper/proxy": "~4.0", |
|||
"intervention/image": "^2.5", |
|||
"jasig/phpcas": "1.3.4", |
|||
"laravel/framework": "^5.7.7", |
|||
"laravel/tinker": "~1.0", |
|||
"maatwebsite/excel": "^3.1", |
|||
"subfission/cas": "2.0.9", |
|||
"symfony/process": "^4.4.1" |
|||
}, |
|||
"require-dev": { |
|||
"beyondcode/laravel-er-diagram-generator": "^1.4", |
|||
"filp/whoops": "~2.0", |
|||
"fzaninotto/faker": "~1.4", |
|||
"mockery/mockery": "~1.0", |
|||
"phpunit/phpunit": "~7.0" |
|||
}, |
|||
"autoload": { |
|||
"classmap": [ |
|||
"database/seeds", |
|||
"database/factories" |
|||
], |
|||
"psr-4": { |
|||
"App\\": "app/" |
|||
} |
|||
}, |
|||
"autoload-dev": { |
|||
"psr-4": { |
|||
"Tests\\": "tests/" |
|||
} |
|||
}, |
|||
"extra": { |
|||
"laravel": { |
|||
"dont-discover": [ |
|||
"TelescopeServiceProvider" |
|||
] |
|||
} |
|||
}, |
|||
"scripts": { |
|||
"post-root-package-install": [ |
|||
"@php -r \"file_exists('.env') || copy('.env.example', '.env');\"" |
|||
], |
|||
"post-create-project-cmd": [ |
|||
"@php artisan key:generate" |
|||
], |
|||
"post-autoload-dump": [ |
|||
"Illuminate\\Foundation\\ComposerScripts::postAutoloadDump", |
|||
"@php artisan package:discover" |
|||
] |
|||
}, |
|||
"config": { |
|||
"preferred-install": "dist", |
|||
"sort-packages": true, |
|||
"optimize-autoloader": true |
|||
} |
|||
} |
@ -0,0 +1,9 @@ |
|||
{ system ? builtins.currentSystem }: |
|||
let |
|||
pkgs = import <nixpkgs> { inherit system; }; |
|||
#self = in self |
|||
in rec { |
|||
search-and-displace = pkgs.callPackage ./pkgs/sandd.nix { |
|||
inherit pkgs; |
|||
}; |
|||
} |
@ -0,0 +1,28 @@ |
|||
{ pkgs ? import <nixpkgs> { |
|||
inherit system; |
|||
}, system ? builtins.currentSystem |
|||
}: |
|||
let |
|||
name = "search-and-displace"; |
|||
inherit (pkgs) stdenv git curl php phpPackages; |
|||
inherit (phpPackages) composer; |
|||
gitStore = builtins.fetchGit { |
|||
url = "https://github.com/searchanddisplace/searchanddisplace.git"; |
|||
ref = "master"; |
|||
}; |
|||
buildPackage = { name, src }: |
|||
stdenv.mkDerivation { |
|||
inherit name src; |
|||
buildInputs = [ ]; |
|||
buildCommand = '' |
|||
composer install |
|||
npm install |
|||
cp .env.example .env |
|||
# Remove stuff not needed on production - composer.loc, .json, etc, etc |
|||
''; |
|||
}; |
|||
in |
|||
buildPackage { |
|||
inherit name; |
|||
src = gitStore; |
|||
} |
@ -0,0 +1,26 @@ |
|||
## Search & Displace |
|||
|
|||
## :information_source: About |
|||
|
|||
Search and Displace is developing a workflow and toolchain which intends to address |
|||
the problem of mass search and displacement for document content where the original |
|||
documents are in a range of forms, including a wide variety of digital document formats, |
|||
both binary and more modern compressed XML forms, but also encompassing older documents |
|||
where the only surviving form is printed or even handwritten. |
|||
|
|||
## :rocket: Installation |
|||
|
|||
First install nix following the instructions on their website at https://nixos.org/nix/manual/#chap-installation |
|||
|
|||
The add searchanddiplace channel to your nix environment and update it: |
|||
```bash |
|||
nix-channel --add https://github.com/searchanddisplace/searchanddisplace/channel.tar.bz2 |
|||
nix-channel --update |
|||
``` |
|||
|
|||
You can now install search-and-displace: |
|||
|
|||
nix-env -iA searchanddisplace.default |
|||
|
|||
## :roller_coaster: Usage |
|||
|
Write
Preview
Loading…
Cancel
Save
Reference in new issue