forked from mininet/mininet
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathshell.nix
More file actions
33 lines (27 loc) · 670 Bytes
/
Copy pathshell.nix
File metadata and controls
33 lines (27 loc) · 670 Bytes
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
with import <nixpkgs> {};
# let
# pyEnv = pkgs.python.withPackages(ps: with ps; [
# mininet-python
# ]);
# in
# pkgs.stdenv.mkDerivation {
# name = "mininet";
# buildInputs = [
# pyEnv
# pkgs.mininet
# ];
# }
# {pkgs ? import <nixpkgs> {} }:
pythonPackages.buildPythonPackage {
name = "mininet";
version="alpha";
# need to access mnexec
propagatedBuiltInputs = [
(python.withPackages (ps: [ ps.setuptools ]))
# pythonPackages.setuptools
];
src = ./.;
postInstall = ''
echo "__import__('pkg_resources').declare_namespace(__name__)" >> "$out/lib/${python.libPrefix}"/site-packages/mininet/__init__.py
'';
}