aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2020-11-03 15:56:54 -0300
committerEuAndreh <eu@euandre.org>2020-11-03 15:56:54 -0300
commit1e3211afee9f18f0bb49c127d0a7b285fb06fc77 (patch)
treee77677fd29a4bb84f7938573f123933a0b1141e5
parentFeature flag article: start rewriting to make it more user friendly (diff)
downloadeuandre.org-1e3211afee9f18f0bb49c127d0a7b285fb06fc77.tar.gz
euandre.org-1e3211afee9f18f0bb49c127d0a7b285fb06fc77.tar.xz
Finish packaging mdpo
Diffstat (limited to '')
-rw-r--r--default.nix2
-rw-r--r--nix/nixpkgs-next.nix17
2 files changed, 8 insertions, 11 deletions
diff --git a/default.nix b/default.nix
index 4f992aa..84b47c4 100644
--- a/default.nix
+++ b/default.nix
@@ -14,6 +14,7 @@ let
projectBuildInputs = with pkgs; [
jekyllEnv
+ pkgs-next.mdpo
perl
graphviz
@@ -25,7 +26,6 @@ let
(hunspellWithDicts (with utils-i18n.dicts; [ en pt fr eo ]))
];
in rec {
- inherit (pkgs-next) mdpo pymd4c md4c;
site = pkgs.stdenv.mkDerivation {
inherit src;
name = "website-site";
diff --git a/nix/nixpkgs-next.nix b/nix/nixpkgs-next.nix
index 738d19c..1b49383 100644
--- a/nix/nixpkgs-next.nix
+++ b/nix/nixpkgs-next.nix
@@ -9,7 +9,6 @@
sha256 = "0km84rmcrczq4n87ryf3ffkfbjh4jim361pbld0z8wgp60rz08dh";
};
nativeBuildInputs = with pkgs; [ cmake ];
- outputs = [ "bin" "dev" "out" ];
};
pymd4c = with pkgs.python3.pkgs;
@@ -20,16 +19,14 @@
inherit pname version;
sha256 = "07s3arn85ri92im6x3ipljdmrxmpik7irs06i6lm17j1x6j9841d";
};
- nativeBuildInputs = with pkgs; [ # cmake
- md4c.dev
- cython
- pkgconfig
- setuptools_scm
- ];
- propagatedBuildInputs = with pkgs.python3Packages; [ flake8 ];
+ nativeBuildInputs = [ pkgs.pkgconfig ];
+ propagatedBuildInputs =
+ [ md4c pkgs.python3Packages.cffi pkgs.python3Packages.pkgconfig ];
- LDFLAGS = "-L${md4c.dev}/lib";
- CFLAGS = "-I${md4c.dev}/include";
+ preConfigure = ''
+ export INCLUDE_DIR=${md4c}/include
+ export LIB_DIR=${md4c}/lib
+ '';
};
mdpo = with pkgs.python3.pkgs;