name = "${pname}-${version}";
src = fetchFromGitHub json.github;
};
-
- fetchedGit = path:
- let
- json = lib.importJSON path;
- in rec {
- version = json.tag;
- pname = json.meta.name;
- name = "${pname}-${version}";
- src = fetchgit json.git;
- };
-
- fetchedGitPrivate = path:
- let
- json = lib.importJSON path;
- in rec {
- version = json.tag;
- pname = json.meta.name;
- name = "${pname}-${version}";
- src = builtins.fetchGit {
- url = json.git.url;
- ref = "master";
- rev = json.git.rev;
- };
- };
} // (if builtins.pathExists ./private then callPackage ./private {} else {})
+++ /dev/null
-{
- "tag": "882f166-master",
- "meta": {
- "name": "chloe",
- "url": "ssh://gitolite@git.immae.eu/perso/Immae/Sites/Chloe",
- "branch": "master"
- },
- "git": {
- "url": "ssh://gitolite@git.immae.eu/perso/Immae/Sites/Chloe",
- "rev": "882f166999a59081ad896f26318e6a04db9f9f43",
- "sha256": "131095y1bjnslipq90w9345cmgyk2bfiz5pfpkbg1jbj2ypl4haj",
- "fetchSubmodules": true
- }
-}
{ environment ? "prod"
, varDir ? "/var/lib/chloe_${environment}"
-, spip, stdenv, mylibs, sassc }:
+, spip, stdenv, sassc, sources }:
let
- siteDir = stdenv.mkDerivation (mylibs.fetchedGitPrivate ./chloe.json // rec {
+ siteDir = stdenv.mkDerivation {
+ version = sources.websites-chloe-app.version;
+ pname = "chloe";
+ src = sources.websites-chloe-app;
buildPhase = ''
make
'';
cp -a . $out
'';
buildInputs = [ sassc ];
- });
+ };
in
spip.override {
ldap = true;
+++ /dev/null
-{
- "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
- }
-}
{ 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}"
{ environment ? "prod"
, varDir ? "/var/lib/tellesflorian_${environment}"
, secretsPath ? "/var/secrets/webapps/${environment}-tellesflorian"
-, composerEnv, fetchurl, mylibs }:
+, composerEnv, fetchurl, sources }:
let
app = composerEnv.buildPackage (
import ./php-packages.nix { inherit composerEnv fetchurl; } //
- mylibs.fetchedGitPrivate ./tellesflorian.json //
rec {
+ version = sources.websites-florian-app.version;
+ pname = "tellesflorian";
+ name = "${pname}-${version}";
+ src = sources.websites-florian-app;
noDev = (environment == "prod");
preInstall = ''
export SYMFONY_ENV="${environment}"
+++ /dev/null
-{
- "tag": "1793d5c-master",
- "meta": {
- "name": "tellesflorian",
- "url": "ssh://gitolite@git.immae.eu/perso/florian_telles/stabilo",
- "branch": "master"
- },
- "git": {
- "url": "ssh://gitolite@git.immae.eu/perso/florian_telles/stabilo",
- "rev": "1793d5c7912d1b20ad1df1ac59be9d7f1220e919",
- "sha256": "1zhxcrbglbjb6xfr8sfm4m2miabbkkb0a7543va3b5akrn6yk0cb",
- "fetchSubmodules": true
- }
-}
+++ /dev/null
-{
- "tag": "b99537f-master",
- "meta": {
- "name": "aten",
- "url": "ssh://gitolite@git.immae.eu/perso/Immae/Sites/Aten",
- "branch": "master"
- },
- "git": {
- "url": "ssh://gitolite@git.immae.eu/perso/Immae/Sites/Aten",
- "rev": "b99537fdad41291afb4f1bb8b2e2aa4081c71fae",
- "sha256": "15mlyik6zivxwry6zc906bqnivxhby27yr8kj4lg5n68pvb877dn",
- "fetchSubmodules": true
- }
-}
{ environment ? "prod"
, varDir ? "/var/lib/aten_${environment}"
-, mylibs, composerEnv, fetchgit, runCommand, nodejs, jq, libsass, python, fetchurl, yarn2nix-moretea }:
+, composerEnv, fetchgit, runCommand, nodejs, jq, libsass, python, fetchurl, yarn2nix-moretea, sources }:
let
- packagesource = mylibs.fetchedGitPrivate ./aten.json;
+ packagesource = sources.websites-isabelle-aten;
packagejson = runCommand "package.json" { buildInputs = [ jq ]; } ''
- cat ${packagesource.src}/package.json | jq -r '.version = "v1.0.0"|.name="aten"' > $out
+ cat ${packagesource}/package.json | jq -r '.version = "v1.0.0"|.name="aten"' > $out
'';
yarnModules = yarn2nix-moretea.mkYarnModules rec {
name = "aten-yarn";
pname = name;
version = "v1.0.0";
packageJSON = packagejson;
- yarnLock = "${packagesource.src}/yarn.lock";
+ yarnLock = "${packagesource}/yarn.lock";
yarnNix = ./yarn-packages.nix;
pkgConfig = {
node-sass = {
};
app = composerEnv.buildPackage (
import ./php-packages.nix { inherit composerEnv fetchurl fetchgit; } //
- packagesource //
rec {
+ version = packagesource.version;
+ pname = "aten";
+ name = "${pname}-${version}";
+ src = packagesource;
noDev = (environment == "prod");
preInstall = ''
export SYMFONY_ENV="${environment}"
{ environment ? "prod"
, varDir ? "/var/lib/iridologie_${environment}"
-, spip, stdenv, mylibs, sassc }:
+, spip, stdenv, sassc, sources }:
let
- siteDir = stdenv.mkDerivation (mylibs.fetchedGitPrivate ./iridologie.json // rec {
+ siteDir = stdenv.mkDerivation rec {
+ version = sources.websites-isabelle-iridologie.version;
+ pname = "iridologie";
+ name = "${pname}-${version}";
+ src = sources.websites-isabelle-iridologie;
installPhase = ''
cp -a . $out
'';
- });
+ };
in
spip.override {
ldap = true;
+++ /dev/null
-{
- "tag": "2f2ec6b-master",
- "meta": {
- "name": "iridologie",
- "url": "ssh://gitolite@git.immae.eu/perso/Immae/Sites/Iridologie",
- "branch": "master"
- },
- "git": {
- "url": "ssh://gitolite@git.immae.eu/perso/Immae/Sites/Iridologie",
- "rev": "2f2ec6b003f4de97e9f8651db540c9114ac877c2",
- "fetchSubmodules": true
- }
-}
{ environment ? "prod"
, varDir ? "/var/lib/ludivinecassal_${environment}"
, secretsPath ? "/var/secrets/webapps/${environment}-ludivinecassal"
-, composerEnv, fetchurl, fetchgit, imagemagick, sass, ruby, mylibs }:
+, composerEnv, fetchurl, fetchgit, imagemagick, sass, ruby, sources }:
let
app = composerEnv.buildPackage (
import ./php-packages.nix { inherit composerEnv fetchurl fetchgit; } //
- mylibs.fetchedGitPrivate ./ludivinecassal.json //
rec {
+ name = "${pname}-${version}";
+ pname = "ludivinecassal";
+ version = sources.websites-ludivine-app.version;
+ src = sources.websites-ludivine-app;
noDev = (environment == "prod");
preInstall = ''
export SYMFONY_ENV="${environment}"
+++ /dev/null
-{
- "tag": "0dacc32-master",
- "meta": {
- "name": "ludivinecassal",
- "url": "ssh://gitolite@git.immae.eu/perso/Immae/Sites/Ludivine",
- "branch": "master"
- },
- "git": {
- "url": "ssh://gitolite@git.immae.eu/perso/Immae/Sites/Ludivine",
- "rev": "0dacc320ea052b69f79861c84bceaa89be53de60",
- "sha256": "10khg1fq9ixly3xak591n3v0rv3f2hn91rd46d75yv3wjxaj1c2d",
- "fetchSubmodules": true
- }
-}
{ environment ? "prod"
, varDir ? "/var/lib/piedsjaloux_${environment}"
, secretsPath ? "/var/secrets/webapps/${environment}-piedsjaloux"
-, composerEnv, fetchurl, fetchgit, mylibs }:
+, composerEnv, fetchurl, fetchgit, sources }:
let
app = composerEnv.buildPackage (
import ./php-packages.nix { inherit composerEnv fetchurl fetchgit; } //
- mylibs.fetchedGitPrivate ./piedsjaloux.json //
rec {
+ version = sources.websites-piedsjaloux-app.version;
+ pname = "piedsjaloux";
+ name = "${pname}-${version}";
+ src = sources.websites-piedsjaloux-app;
noDev = (environment == "prod");
preInstall = ''
export SYMFONY_ENV="${environment}"
+++ /dev/null
-{
- "tag": "4ee4538-master",
- "meta": {
- "name": "piedsjaloux",
- "url": "ssh://gitolite@git.immae.eu/Pieds_jaloux/NewSite",
- "branch": "master"
- },
- "git": {
- "url": "ssh://gitolite@git.immae.eu/Pieds_jaloux/NewSite",
- "rev": "4ee45386ad9ec9c081234a2fbde66e5b0c3294be",
- "sha256": "10a41chh4crn95z6lk6nhkx27089djkngypa9m76bg7ph508mvnq",
- "fetchSubmodules": true
- }
-}
let
cfg = config.myServices.websites.richie.production;
vardir = "/var/lib/richie_production";
- richieSrc = pkgs.stdenv.mkDerivation (pkgs.mylibs.fetchedGitPrivate ./richie.json // {
+ richieSrc = pkgs.stdenv.mkDerivation rec {
+ version = pkgs.sources.websites-richie-app.version;
+ pname = "richie";
+ name = "${pname}-${version}";
+ src = pkgs.sources.websites-richie-app;
phases = "installPhase";
installPhase = ''
cp -a $src $out
ln -sf ${vardir}/photos $out/
sed -i "s@localedef --list-archive@localedef --list-archive /run/current-system/sw/lib/locale/locale-archive@" $out/admin/parametres.php
'';
- });
+ };
webappdir = config.services.websites.webappDirsPaths.richie_production;
secretPath = config.secrets.fullPaths."websites/richie/production";
apacheUser = config.services.httpd.Prod.user;
+++ /dev/null
-{
- "tag": "11490d4-master",
- "meta": {
- "name": "richie",
- "url": "ssh://gitolite@git.immae.eu/perso/Immae/Sites/Richie",
- "branch": "master"
- },
- "git": {
- "url": "ssh://gitolite@git.immae.eu/perso/Immae/Sites/Richie",
- "rev": "11490d4591034deca7681aae8d9a22ca6cd8da4a",
- "sha256": "1rlq5qkbaw9n7yxhyvvimrizwkpqlhhsc8mhipzxlwk1si81fci1",
- "fetchSubmodules": true
- }
-}
{
- "ldapvi": {
+ "buildbot-cours-deps": {
"ref": "master",
- "repo": "http://www.lichteblau.com/git/ldapvi.git",
- "rev": "f1d42bad66cc4623d1ff21fbd5dddbf5009d3e40",
+ "repo": "ssh://gitolite@git.immae.eu/perso/Immae/Sites/Cours",
+ "rev": "33f139f2e2ea0a16b8ed813c5436e5a5bb506f6d",
+ "type": "git"
+ },
+ "buildbot-cours-nixpkgs": {
+ "branch": "nixos-unstable",
+ "description": "Frozen nixpkgs snapshot for texlive",
+ "homepage": "https://github.com/NixOS/nixpkgs",
+ "owner": "NixOS",
+ "repo": "nixpkgs-channels",
+ "rev": "fce7562cf46727fdaf801b232116bc9ce0512049",
+ "sha256": "14rvi69ji61x3z88vbn17rg5vxrnw2wbnanxb7y0qzyqrj7spapx",
+ "type": "tarball",
+ "url": "https://github.com/NixOS/nixpkgs-channels/archive/fce7562cf46727fdaf801b232116bc9ce0512049.tar.gz",
+ "url_template": "https://github.com/<owner>/<repo>/archive/<rev>.tar.gz"
+ },
+ "buildbot-normalesup-deps": {
+ "ref": "master",
+ "repo": "ssh://gitolite@git.immae.eu/perso/Immae/Projets/Sites/Normalesup",
+ "rev": "de294da4027e80a7b8bf7ec8c393ca0b60218575",
"type": "git"
},
+ "buildbot-normalesup-nixpkgs": {
+ "description": "Frozen nixpkgs snapshot for texlive",
+ "revision": "173017.85f820d6e41",
+ "sha256": "0fs390gvz8d3n7v4zj538gf3n1b14sikbf0ijrxgxib5i0704mdb",
+ "type": "tarball",
+ "url": "https://releases.nixos.org/nixos/19.03/nixos-19.03.173017.85f820d6e41/nixexprs.tar.xz",
+ "url_template": "https://releases.nixos.org/nixos/<version>/nixos-<version>.<revision>/nixexprs.tar.xz",
+ "version": "19.03"
+ },
+ "buildbot-plugin-buildslist": {
+ "ref": "master",
+ "repo": "https://git.immae.eu/perso/Immae/Projets/Buildbot/buildslist",
+ "rev": "fb8641f2badcec9f232cc5f727009911fc1c89b0",
+ "type": "git",
+ "version": "f1d42ba-master"
+ },
"niv": {
"branch": "master",
"description": "Easy dependency management for Nix projects",
"homepage": "https://github.com/NixOS/nixpkgs",
"owner": "NixOS",
"repo": "nixpkgs-channels",
- "rev": "ae6bdcc53584aaf20211ce1814bea97ece08a248",
- "sha256": "0hjhznns1cxgl3hww2d5si6vhy36pnm53hms9h338v6r633dcy77",
+ "rev": "fce7562cf46727fdaf801b232116bc9ce0512049",
+ "sha256": "14rvi69ji61x3z88vbn17rg5vxrnw2wbnanxb7y0qzyqrj7spapx",
"type": "tarball",
- "url": "https://github.com/NixOS/nixpkgs-channels/archive/ae6bdcc53584aaf20211ce1814bea97ece08a248.tar.gz",
+ "url": "https://github.com/NixOS/nixpkgs-channels/archive/fce7562cf46727fdaf801b232116bc9ce0512049.tar.gz",
"url_template": "https://github.com/<owner>/<repo>/archive/<rev>.tar.gz"
},
- "nixpkgs-buildbot-cours": {
- "description": "Frozen nixpkgs snapshot for texlive",
- "revision": "173017.85f820d6e41",
- "sha256": "0fs390gvz8d3n7v4zj538gf3n1b14sikbf0ijrxgxib5i0704mdb",
- "type": "tarball",
- "url": "https://releases.nixos.org/nixos/19.03/nixos-19.03.173017.85f820d6e41/nixexprs.tar.xz",
- "url_template": "https://releases.nixos.org/nixos/<version>/nixos-<version>.<revision>/nixexprs.tar.xz",
- "version": "19.03"
- },
- "nixpkgs-buildbot-normalesup": {
- "description": "Frozen nixpkgs snapshot for texlive",
- "revision": "173017.85f820d6e41",
- "sha256": "0fs390gvz8d3n7v4zj538gf3n1b14sikbf0ijrxgxib5i0704mdb",
- "type": "tarball",
- "url": "https://releases.nixos.org/nixos/19.03/nixos-19.03.173017.85f820d6e41/nixexprs.tar.xz",
- "url_template": "https://releases.nixos.org/nixos/<version>/nixos-<version>.<revision>/nixexprs.tar.xz",
- "version": "19.03"
- },
"nixpkgs-nixops": {
"branch": "nixos-unstable",
"description": "A read-only mirror of NixOS/nixpkgs tracking the released channels. Send issues and PRs to",
"type": "tarball",
"url": "https://github.com/NixOS/nixpkgs-channels/archive/34c7eb7545d155cc5b6f499b23a7cb1c96ab4d59.tar.gz",
"url_template": "https://github.com/<owner>/<repo>/archive/<rev>.tar.gz"
+ },
+ "overlays-ldapvi": {
+ "ref": "master",
+ "repo": "http://www.lichteblau.com/git/ldapvi.git",
+ "rev": "f1d42bad66cc4623d1ff21fbd5dddbf5009d3e40",
+ "type": "git",
+ "version": "f1d42ba-master"
+ },
+ "overlays-pass": {
+ "ref": "master",
+ "repo": "https://git.zx2c4.com/password-store/",
+ "rev": "d29a389a40524c684595f51bb937f66958bc14ea",
+ "type": "git",
+ "version": "d29a389-master"
+ },
+ "webapps-mediagoblin": {
+ "ref": "stable",
+ "repo": "git://git.savannah.gnu.org/mediagoblin.git",
+ "rev": "cd465ebfec837a75a44c4ebd727dffe2fff6d850",
+ "type": "git",
+ "version": "cd465eb-stable"
+ },
+ "webapps-surfer": {
+ "ref": "master",
+ "repo": "https://git.immae.eu/perso/Immae/Projets/Nodejs/Surfer.git",
+ "rev": "476177380452c9c7c5b1624805feedc824c5995e",
+ "type": "git",
+ "version": "4761773-master"
+ },
+ "webapps-ttrss": {
+ "ref": "master",
+ "repo": "https://git.tt-rss.org/fox/tt-rss.git",
+ "rev": "986ca251f995f7754a0470d3e0c44538a545081f",
+ "type": "git",
+ "version": "986ca25-master"
+ },
+ "websites-chloe-app": {
+ "ref": "master",
+ "repo": "ssh://gitolite@git.immae.eu/perso/Immae/Sites/Chloe",
+ "rev": "882f166999a59081ad896f26318e6a04db9f9f43",
+ "type": "git",
+ "version": "882f166-master"
+ },
+ "websites-connexionswing-app": {
+ "ref": "master",
+ "repo": "ssh://gitolite@git.immae.eu/perso/Immae/Projets/Connexionswing",
+ "rev": "ed5874396d35766e0810a6d4e78e1a8f6b170835",
+ "type": "git",
+ "version": "ed58743-master"
+ },
+ "websites-florian-app": {
+ "ref": "master",
+ "repo": "ssh://gitolite@git.immae.eu/perso/florian_telles/stabilo",
+ "rev": "1793d5c7912d1b20ad1df1ac59be9d7f1220e919",
+ "type": "git",
+ "version": "1793d5c-master"
+ },
+ "websites-isabelle-aten": {
+ "ref": "master",
+ "repo": "ssh://gitolite@git.immae.eu/perso/Immae/Sites/Aten",
+ "rev": "b99537fdad41291afb4f1bb8b2e2aa4081c71fae",
+ "type": "git",
+ "version": "b99537f-master"
+ },
+ "websites-isabelle-iridologie": {
+ "ref": "master",
+ "repo": "ssh://gitolite@git.immae.eu/perso/Immae/Sites/Iridologie",
+ "rev": "2f2ec6b003f4de97e9f8651db540c9114ac877c2",
+ "type": "git",
+ "version": "2f2ec6b-master"
+ },
+ "websites-ludivine-app": {
+ "ref": "master",
+ "repo": "ssh://gitolite@git.immae.eu/perso/Immae/Sites/Ludivine",
+ "rev": "0dacc320ea052b69f79861c84bceaa89be53de60",
+ "type": "git",
+ "version": "0dacc32-master"
+ },
+ "websites-piedsjaloux-app": {
+ "ref": "master",
+ "repo": "ssh://gitolite@git.immae.eu/Pieds_jaloux/NewSite",
+ "rev": "4ee45386ad9ec9c081234a2fbde66e5b0c3294be",
+ "type": "git",
+ "version": "4ee4538-master"
+ },
+ "websites-richie-app": {
+ "ref": "master",
+ "repo": "ssh://gitolite@git.immae.eu/perso/Immae/Sites/Richie",
+ "rev": "11490d4591034deca7681aae8d9a22ca6cd8da4a",
+ "type": "git",
+ "version": "11490d4-master"
}
}
self: super: {
ldapvi = super.ldapvi.overrideAttrs (old: rec {
name = "ldapvi-${version}";
- version = "${builtins.substring 0 7 self.sources.ldapvi.rev}-${self.sources.ldapvi.ref}";
- src = self.sources.ldapvi;
+ version = self.sources.overlays-ldapvi.version;
+ src = self.sources.overlays-ldapvi;
});
}
self: super: {
- pass = super.pass.overrideAttrs (old:
- self.mylibs.fetchedGit ./pass.json // {
- patches = old.patches ++ [ ./pass-fix-pass-init.patch ];
- }
- );
-
+ pass = super.pass.overrideAttrs (old: rec {
+ pname = "password-store";
+ name = "${pname}-${version}";
+ version = self.sources.overlays-pass.version;
+ src = self.sources.overlays-pass;
+ patches = old.patches ++ [ ./pass-fix-pass-init.patch ];
+ });
}
+++ /dev/null
-{
- "tag": "d29a389-master",
- "meta": {
- "name": "password-store",
- "url": "https://git.zx2c4.com/password-store/",
- "branch": "master"
- },
- "git": {
- "url": "https://git.zx2c4.com/password-store/",
- "rev": "d29a389a40524c684595f51bb937f66958bc14ea",
- "sha256": "17g43i0if9nggcq6005iyxxy9my8s15ihc2nzwjgqzhy3svh5xvn",
- "fetchSubmodules": true
- }
-}
+++ /dev/null
-{
- "tag": "fb8641f-master",
- "meta": {
- "name": "buildslist",
- "url": "https://git.immae.eu/perso/Immae/Projets/Buildbot/buildslist",
- "branch": "master"
- },
- "git": {
- "url": "https://git.immae.eu/perso/Immae/Projets/Buildbot/buildslist",
- "rev": "fb8641f2badcec9f232cc5f727009911fc1c89b0",
- "sha256": "0hgz5yaq0mz9lvfywbkbjap7z55839k18vfyg1yhx6l1mvvbq8zc",
- "fetchSubmodules": true
- }
-}
-{ mylibs, stdenv, runCommand, writeScriptBin, buildBowerComponents, pythonPackages, libsass, python, fetchurl, jq, yarn, nodejs, yarn2nix-moretea }:
+{ stdenv, runCommand, writeScriptBin, buildBowerComponents, pythonPackages, libsass, python, fetchurl, jq, yarn, nodejs, yarn2nix-moretea, sources }:
let
- buildslist_src = mylibs.fetchedGit ./buildslist.json;
+ buildslist_src = sources.buildbot-plugin-buildslist;
packagejson = runCommand "package.json" { buildInputs = [ jq ]; } ''
- cat ${buildslist_src.src}/package.json | jq -r '.version = "${pythonPackages.buildbot-pkg.version}"|.license= "MIT"' > $out
+ cat ${buildslist_src}/package.json | jq -r '.version = "${pythonPackages.buildbot-pkg.version}"|.license= "MIT"' > $out
'';
nodeHeaders = fetchurl {
url = "https://nodejs.org/download/release/v${nodejs.version}/node-v${nodejs.version}-headers.tar.gz";
pname = name;
inherit (pythonPackages.buildbot-pkg) version;
packageJSON = packagejson;
- yarnLock = "${buildslist_src.src}/yarn.lock";
+ yarnLock = "${buildslist_src}/yarn.lock";
yarnNix = ./yarn-packages.nix;
pkgConfig = {
node-sass = {
buildslist_bower = buildBowerComponents {
name = "buildslist";
generated = ./bower.nix;
- src = "${buildslist_src.src}/guanlecoja/";
+ src = "${buildslist_src}/guanlecoja/";
};
# the buildbot-pkg calls yarn and screws up everything...
fakeYarn = writeScriptBin "yarn" ''
buildInputs = [ buildslist_yarn buildslist_bower ];
doCheck = false;
- src = buildslist_src.src;
+ src = buildslist_src;
}
-{ mylibs, callPackage, python }:
+{ callPackage, python }:
{
buildslist = callPackage ./buildslist {
- inherit mylibs;
pythonPackages = python.pkgs;
};
}
{ mylibs, callPackage, python }:
{
apprise = callPackage ./apprise { inherit mylibs; pythonPackages = python.pkgs; };
- buildbot-plugins = callPackage ./buildbot/plugins { inherit mylibs python; };
+ buildbot-plugins = callPackage ./buildbot/plugins { inherit python; };
wokkel = callPackage ./wokkel.nix { pythonPackages = python.pkgs; };
pymilter = callPackage ./pymilter.nix { pythonPackages = python.pkgs; };
}
spip = callPackage ./spip {};
surfer = callPackage ./surfer { inherit mylibs; };
taskwarrior-web = callPackage ./taskwarrior-web { inherit mylibs; };
- ttrss = callPackage ./ttrss { inherit mylibs; };
+ ttrss = callPackage ./ttrss {};
wallabag = callPackage ./wallabag { inherit composerEnv; };
yourls = callPackage ./yourls { inherit mylibs; };
}
-{ makeWrapper, stdenv, writeScript, fetchurl, buildBowerComponents, mylibs, which, python36, gst_all_1, automake, autoconf, nodejs, nodePackages, lib, callPackage }:
+{ makeWrapper, stdenv, writeScript, fetchurl, buildBowerComponents, mylibs, which, python36, gst_all_1, automake, autoconf, nodejs, nodePackages, lib, callPackage, sources }:
let
overridePython = let
packageOverrides = self: super: {
load_entry_point('mediagoblin', 'console_scripts', 'gmg')()
)
'';
+ mediagoblinSrc = sources.webapps-mediagoblin;
bowerComponents = buildBowerComponents {
name = "mediagoblin-bower-components";
generated = ./bower-packages.nix;
- src = (mylibs.fetchedGit ./mediagoblin.json).src;
+ src = mediagoblinSrc;
};
pluginNames = [ "basicsearch" ];
allPlugins = lib.attrsets.genAttrs pluginNames
passthru = toPassthru newMediagoblin;
});
in newMediagoblin;
- package = stdenv.mkDerivation (mylibs.fetchedGit ./mediagoblin.json // rec {
+ package = stdenv.mkDerivation rec {
+ pname = "mediagoblin";
+ name = "${pname}-${version}";
+ version = mediagoblinSrc.version;
+ src = mediagoblinSrc;
preConfigure = ''
# ./bootstrap.sh
aclocal -I m4 --install
buildInputs = [ makeWrapper automake autoconf which nodePackages.bower nodejs python ];
propagatedBuildInputs = with gst_all_1; [ python gst-libav gst-plugins-good gst-plugins-bad gst-plugins-ugly gstreamer ];
passthru = toPassthru package;
- });
+ };
in package
+++ /dev/null
-{
- "tag": "cd465eb-stable",
- "meta": {
- "name": "mediagoblin",
- "url": "git://git.savannah.gnu.org/mediagoblin.git",
- "branch": "stable"
- },
- "git": {
- "url": "git://git.savannah.gnu.org/mediagoblin.git",
- "rev": "cd465ebfec837a75a44c4ebd727dffe2fff6d850",
- "sha256": "1yz4i4i97z3rxl534a6psaybyjbyp5nnc52v3nvbpzc4pd2s69mx",
- "fetchSubmodules": true
- }
-}
+++ /dev/null
-{
- "tag": "4761773-master",
- "meta": {
- "name": "Surfer",
- "url": "https://git.immae.eu/perso/Immae/Projets/Nodejs/Surfer.git",
- "branch": "master"
- },
- "git": {
- "url": "https://git.immae.eu/perso/Immae/Projets/Nodejs/Surfer.git",
- "rev": "476177380452c9c7c5b1624805feedc824c5995e",
- "sha256": "0ibg7hbilvlq7dw4ayawdcjhfl2nkgzfc4ra6n73y7hjasxrnm07",
- "fetchSubmodules": true
- }
-}
-{ callPackage, mylibs }:
+{ callPackage, mylibs, sources }:
# built using node2nix -l package-lock.json
# and changing "./." to "src"
(callPackage ./node-packages.nix {
- inherit (mylibs) fetchedGit;
+ src = sources.webapps-surfer;
nodeEnv = callPackage mylibs.nodeEnv {};
}).package.overrideAttrs(old: {
postInstall = ''
# This file has been generated by node2nix 1.8.0. Do not edit!
-{nodeEnv, fetchedGit, fetchurl, fetchgit, globalBuildInputs ? []}:
+{nodeEnv, src, fetchurl, fetchgit, globalBuildInputs ? []}:
let
sources = {
name = "cloudron-surfer";
packageName = "cloudron-surfer";
version = "5.10.0";
- src = (fetchedGit ./Surfer.json).src;
+ inherit src;
dependencies = [
(sources."accepts-1.3.4" // {
dependencies = [
{ ttrss_config ? "/etc/ttrss/config.php"
, varDir ? "/var/lib/ttrss"
-, stdenv, mylibs, lib, callPackage }:
+, stdenv, lib, callPackage, sources }:
let
pluginNames = [ "auth_ldap" "af_feedmod" "feediron" "ff_instagram" "tumblr_gdpr_ua" ];
allPlugins = lib.attrsets.genAttrs pluginNames
passthru = toPassthru newTtrss (pkg.plugins ++ plugins);
});
in newTtrss;
- package = stdenv.mkDerivation (mylibs.fetchedGit ./tt-rss.json // rec {
+ package = stdenv.mkDerivation rec {
+ pname = "tt-rss";
+ version = sources.webapps-ttrss.version;
+ name = "${pname}-${version}";
+ src = sources.webapps-ttrss;
buildPhase = ''
rm -rf lock feed-icons cache
ln -sf ${varDir}/{lock,feed-icons,cache} .
ln -s ${ttrss_config} $out/config.php
'';
passthru = toPassthru package [];
- });
+ };
in package
+++ /dev/null
-{
- "tag": "986ca25-master",
- "meta": {
- "name": "tt-rss",
- "url": "https://git.tt-rss.org/fox/tt-rss.git",
- "branch": "master"
- },
- "git": {
- "url": "https://git.tt-rss.org/fox/tt-rss.git",
- "rev": "986ca251f995f7754a0470d3e0c44538a545081f",
- "sha256": "0xkafkh7l9zazm5d6snlq03kdfxfhkb4c8fdsb32wn8b9bhdzf5s",
- "fetchSubmodules": true
- }
-}