diff options
author | Yaya <github@uwu.is> | 2024-03-05 06:07:29 +0100 |
---|---|---|
committer | Yaya <github@uwu.is> | 2024-03-11 18:16:36 +0100 |
commit | c1fd254bebdca04aa43577ac4ac5823cbe2d2cac (patch) | |
tree | 7b22c47a60b8715833a4364fbaa1a0c49bf8bdd1 /pkgs/servers/web-apps | |
parent | eb12b77ff061ac29279b940f829a7288441488fb (diff) | |
download | nixlib-c1fd254bebdca04aa43577ac4ac5823cbe2d2cac.tar nixlib-c1fd254bebdca04aa43577ac4ac5823cbe2d2cac.tar.gz nixlib-c1fd254bebdca04aa43577ac4ac5823cbe2d2cac.tar.bz2 nixlib-c1fd254bebdca04aa43577ac4ac5823cbe2d2cac.tar.lz nixlib-c1fd254bebdca04aa43577ac4ac5823cbe2d2cac.tar.xz nixlib-c1fd254bebdca04aa43577ac4ac5823cbe2d2cac.tar.zst nixlib-c1fd254bebdca04aa43577ac4ac5823cbe2d2cac.zip |
snipe-it: Move to pkgs/by-name/
Diffstat (limited to 'pkgs/servers/web-apps')
-rw-r--r-- | pkgs/servers/web-apps/snipe-it/default.nix | 61 |
1 files changed, 0 insertions, 61 deletions
diff --git a/pkgs/servers/web-apps/snipe-it/default.nix b/pkgs/servers/web-apps/snipe-it/default.nix deleted file mode 100644 index 5248df4ffad9..000000000000 --- a/pkgs/servers/web-apps/snipe-it/default.nix +++ /dev/null @@ -1,61 +0,0 @@ -{ lib -, dataDir ? "/var/lib/snipe-it" -, fetchFromGitHub -, mariadb -, nixosTests -, php -}: - -php.buildComposerProject (finalAttrs: { - pname = "snipe-it"; - version = "6.3.1"; - - src = fetchFromGitHub { - owner = "snipe"; - repo = "snipe-it"; - rev = "v${finalAttrs.version}"; - hash = "sha256-/IyQeSnD3lgNpxvPG11qgyL66UhvO7acZOLzk3BQI7U="; - }; - - vendorHash = "sha256-V1jiJnSe7F/4bMj/gG4cfRerfIl+eAZBARm5FgErFoE="; - - postInstall = '' - snipe_it_out="$out/share/php/snipe-it" - - # Before symlinking the following directories, copy the invalid_barcode.gif - # to a different location. The `snipe-it-setup` oneshot service will then - # copy the file back during bootstrap. - mkdir -p $out/share/snipe-it - cp $snipe_it_out/public/uploads/barcodes/invalid_barcode.gif $out/share/snipe-it/ - - rm -R $snipe_it_out/storage $snipe_it_out/public/uploads $snipe_it_out/bootstrap/cache - ln -s ${dataDir}/.env $snipe_it_out/.env - ln -s ${dataDir}/storage $snipe_it_out/ - ln -s ${dataDir}/public/uploads $snipe_it_out/public/uploads - ln -s ${dataDir}/bootstrap/cache $snipe_it_out/bootstrap/cache - - chmod +x $snipe_it_out/artisan - - substituteInPlace $snipe_it_out/config/database.php --replace "env('DB_DUMP_PATH', '/usr/local/bin')" "env('DB_DUMP_PATH', '${mariadb}/bin')" - ''; - - passthru = { - tests = nixosTests.snipe-it; - phpPackage = php; - }; - - meta = with lib; { - description = "A free open source IT asset/license management system"; - longDescription = '' - Snipe-IT was made for IT asset management, to enable IT departments to track - who has which laptop, when it was purchased, which software licenses and accessories - are available, and so on. - Details for snipe-it can be found on the official website at https://snipeitapp.com/. - ''; - homepage = "https://snipeitapp.com/"; - changelog = "https://github.com/snipe/snipe-it/releases/tag/v${version}"; - license = licenses.agpl3Only; - maintainers = with maintainers; [ yayayayaka ]; - platforms = platforms.linux; - }; -}) |