mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-09-29 19:30:11 +00:00
Added homepage where missing, where the sources are pulled from: - https://github.com - https://git.sr.ht - https://gitlab.com - https://invent.kde.org - https://codeberg.org - https://gitlab.gnome.org - https://gitlab.freedesktop.org - https://git.FreeBSD.org - https://salsa.debian.org - https://git.tvdr.de - https://git.suckless.org
43 lines
928 B
Nix
43 lines
928 B
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchFromGitHub,
|
|
cmake,
|
|
flex,
|
|
}:
|
|
|
|
stdenv.mkDerivation {
|
|
pname = "nsplist";
|
|
version = "0-unstable-2017-04-11";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "matthewbauer";
|
|
repo = "NSPlist";
|
|
rev = "713decf06c1ef6c39a707bc99eb45ac9925f2b8a";
|
|
hash = "sha256-mRyuElLTlOZuUlQ3dKZJbclPq73Gv+YFrBCB5nh0nmw=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
cmake
|
|
flex
|
|
];
|
|
|
|
preConfigure = ''
|
|
# Regenerate the lexer for improved compatibility with clang 16.
|
|
flex -o src/NSPlistLexer.cpp <(tail --lines=+17 src/NSPlistLexer.l)
|
|
'';
|
|
|
|
postPatch = ''
|
|
substituteInPlace CMakeLists.txt \
|
|
--replace-fail "cmake_minimum_required(VERSION 2.6)" "cmake_minimum_required(VERSION 3.10)"
|
|
'';
|
|
|
|
meta = {
|
|
maintainers = [ ];
|
|
description = "Parses .plist files";
|
|
homepage = "https://github.com/matthewbauer/NSPlist";
|
|
license = lib.licenses.mit;
|
|
platforms = lib.platforms.unix;
|
|
};
|
|
}
|