nixexprs/neetdraw-master.nix

49 lines
762 B
Nix
Raw Normal View History

2023-06-29 02:31:03 +02:00
{ pkgs ? import <nixpkgs> { }
, local ? false
, full ? true
}:
pkgs.stdenv.mkDerivation rec {
pname = "neetdraw";
version = "master";
nativeBuildInputs = with pkgs; [
cmake
pkg-config
];
buildInputs = with pkgs; [
ncurses
2023-07-04 02:56:52 +02:00
libiconv
2023-06-29 02:31:03 +02:00
libev
# Termo demo-glib.c
#glib
#pcre2
#util-linux
#libselinux
#libsepol
#pcre
];
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";
};
doCheck = true;
meta = with pkgs.lib; {
description = "Terminal drawing application";
homepage = "https://git.janouch.name/p/${pname}";
platforms = platforms.all;
license = licenses.bsd0;
};
}