This repository has been archived by the owner on Jan 4, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
shell.nix
78 lines (66 loc) · 1.85 KB
/
shell.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
with (import <nixpkgs> { });
let
lib = stdenv.lib;
buildPythonPackage = python3Packages.buildPythonPackage;
libsass = buildPythonPackage rec {
pname = "libsass";
version = "0.20.0";
src = fetchFromGitHub {
owner = "sass";
repo = "libsass-python";
rev = version;
sha256 = "0h9rj4k9izkfdvli8ip72bbvh6a7bvrv5pxz6zay2bq235gpfgfc";
};
buildInputs = [
pkgs.libsass
];
propagatedBuildInputs = [
python3Packages.six
];
preBuild = ''
export SYSTEM_SASS=true;
'';
meta = with lib; {
description = "A straightforward binding of libsass for Python. Compile Sass/SCSS in Python with no Ruby stack at all!";
homepage = "https://sass.github.io/libsass-python/";
license = licenses.mit;
maintainers = with maintainers; [ SuperSandro2000 ];
};
};
lektor-scss = buildPythonPackage rec {
pname = "lektor-scss";
version = "1.3.8";
src = fetchFromGitHub {
owner = "chaos-bodensee";
repo = "lektor-scss";
rev = version;
sha256 = "1j5ikjxhg9d9cb4qdvqjdjr861i4ha7h3q52fk1q8wfpzkb451ds";
};
propagatedBuildInputs = [
libsass
python3Packages.termcolor
];
postPatch = ''
sed -i "s/libsass==0.20.0/libsass~=0.20.0/" setup.py
'';
meta = with lib; {
description = "Lektor plugin to compile css out of sass - based on libsass";
homepage = "https://pypi.org/project/lektor-scss/";
license = licenses.mit;
maintainers = with maintainers; [ SuperSandro2000 ];
};
};
in
mkShell {
buildInputs = with pkgs.python3Packages; [
lektor
lektor-scss
libsass
pip
];
shellHook = ''
alias pip="PIP_PREFIX='$(pwd)/_build/pip_packages' \pip"
export PYTHONPATH="$(pwd)/_build/pip_packages/lib/python3.8/site-packages:$PYTHONPATH"
unset SOURCE_DATE_EPOCH
'';
}