From db343436f0e678ef3a97e6f8ac559ffa0507e422 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Isma=C3=ABl=20Bouya?= Date: Sun, 10 May 2020 19:10:05 +0200 Subject: Migrate mylibs to niv (work in progress) --- .../websites/connexionswing/app/connexionswing.json | 14 -------------- modules/private/websites/connexionswing/app/default.nix | 7 +++++-- 2 files changed, 5 insertions(+), 16 deletions(-) delete mode 100644 modules/private/websites/connexionswing/app/connexionswing.json (limited to 'modules/private/websites/connexionswing') diff --git a/modules/private/websites/connexionswing/app/connexionswing.json b/modules/private/websites/connexionswing/app/connexionswing.json deleted file mode 100644 index 7d792ae..0000000 --- a/modules/private/websites/connexionswing/app/connexionswing.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "tag": "ed58743-master", - "meta": { - "name": "connexionswing", - "url": "ssh://gitolite@git.immae.eu/perso/Immae/Projets/Connexionswing", - "branch": "master" - }, - "git": { - "url": "ssh://gitolite@git.immae.eu/perso/Immae/Projets/Connexionswing", - "rev": "ed5874396d35766e0810a6d4e78e1a8f6b170835", - "sha256": "1cjjl24j5di7f9xagm3xk2y80jga6kf3q9zws185jkrwwp3xmfhf", - "fetchSubmodules": true - } -} diff --git a/modules/private/websites/connexionswing/app/default.nix b/modules/private/websites/connexionswing/app/default.nix index 37ce42d..31e88db 100644 --- a/modules/private/websites/connexionswing/app/default.nix +++ b/modules/private/websites/connexionswing/app/default.nix @@ -1,12 +1,15 @@ { environment ? "prod" , varDir ? "/var/lib/connexionswing_${environment}" , secretsPath ? "/var/secrets/webapps/${environment}-connexionswing" -, composerEnv, fetchurl, fetchgit, mylibs }: +, composerEnv, fetchurl, fetchgit, sources }: let app = composerEnv.buildPackage ( import ./php-packages.nix { inherit composerEnv fetchurl fetchgit; } // - mylibs.fetchedGitPrivate ./connexionswing.json // rec { + pname = "connexionswing"; + name = "${pname}-${version}"; + version = sources.websites-connexionswing-app.version; + src = sources.websites-connexionswing-app; noDev = (environment == "prod"); preInstall = '' export SYMFONY_ENV="${environment}" -- cgit v1.2.3