39 lines
662 B
Nix
39 lines
662 B
Nix
{ pkgs ? import <nixpkgs> { }
|
|
, local ? false
|
|
, full ? true
|
|
}:
|
|
pkgs.stdenv.mkDerivation rec {
|
|
pname = "sdn";
|
|
version = "master";
|
|
|
|
nativeBuildInputs = with pkgs; [
|
|
cmake
|
|
pkg-config
|
|
];
|
|
|
|
buildInputs = with pkgs; [
|
|
ncurses
|
|
acl
|
|
];
|
|
|
|
src = if local then
|
|
builtins.path {
|
|
path = ../${pname}/git;
|
|
name = "${pname}";
|
|
}
|
|
else
|
|
fetchGit {
|
|
url = "https://git.janouch.name/p/${pname}.git";
|
|
submodules = true;
|
|
ref = "master";
|
|
};
|
|
|
|
meta = with pkgs.lib; {
|
|
description = "Directory navigator";
|
|
homepage = "https://git.janouch.name/p/${pname}";
|
|
# libacl, __STDC_ISO_10646__
|
|
platforms = platforms.linux;
|
|
license = licenses.bsd0;
|
|
};
|
|
}
|