2018-10-28 16:15:56 +01:00
|
|
|
{ pkgs ? import <nixpkgs> {} }:
|
|
|
|
|
2019-09-08 16:51:49 +02:00
|
|
|
pkgs.python3.pkgs.buildPythonPackage rec {
|
|
|
|
pname= "site-musique";
|
|
|
|
version = "1.0";
|
2018-10-28 16:15:56 +01:00
|
|
|
|
|
|
|
inherit (pkgs) stdenv;
|
|
|
|
|
|
|
|
src = ./.;
|
|
|
|
|
2019-09-08 16:51:49 +02:00
|
|
|
propagatedBuildInputs = [ pkgs.python3.pkgs.django_2_2 pkgs.python3.pkgs.pillow ];
|
|
|
|
|
|
|
|
postFixup = ''
|
|
|
|
wrapPythonProgramsIn $out/bin/manage.py
|
|
|
|
#HACK wrapper breaks django manage.py
|
|
|
|
sed -i "$out/bin/.manage.py-wrapped" -e '
|
|
|
|
0,/sys.argv\[0\].*;/s/sys.argv\[0\][^;]*;//
|
|
|
|
'
|
2018-10-28 16:15:56 +01:00
|
|
|
'';
|
|
|
|
|
2019-09-08 16:51:49 +02:00
|
|
|
doCheck = false;
|
|
|
|
|
2019-09-22 13:15:19 +02:00
|
|
|
postInstall = ''
|
|
|
|
python $out/bin/manage.py collectstatic
|
|
|
|
'';
|
|
|
|
|
2018-10-28 16:15:56 +01:00
|
|
|
meta = {
|
|
|
|
description = "Site de présentation de l'association Musique Fraternité de Meyenheim";
|
|
|
|
homepage = https://musique-meyenheim.fr;
|
|
|
|
maintainers = with stdenv.lib.maintainers; [ nyanloutre ];
|
|
|
|
license = stdenv.lib.licenses.cc-by-nc-sa-40;
|
|
|
|
platforms = stdenv.lib.platforms.all;
|
|
|
|
};
|
|
|
|
}
|