mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-13 09:13:17 +00:00
21f17d69f6
Build-tested on x86_64 Linux & Mac.
25 lines
594 B
Nix
25 lines
594 B
Nix
{ stdenv, fetchurl }:
|
|
|
|
let name = "libbsd-0.8.2";
|
|
in stdenv.mkDerivation {
|
|
inherit name;
|
|
|
|
src = fetchurl {
|
|
url = "http://libbsd.freedesktop.org/releases/${name}.tar.xz";
|
|
sha256 = "02i5brb2007sxq3mn862mr7yxxm0g6nj172417hjyvjax7549xmj";
|
|
};
|
|
|
|
patchPhase = ''
|
|
substituteInPlace Makefile \
|
|
--replace "/usr" "$out" \
|
|
--replace "{exec_prefix}" "{prefix}"
|
|
'';
|
|
|
|
meta = {
|
|
description = "Common functions found on BSD systems";
|
|
homepage = http://libbsd.freedesktop.org/;
|
|
license = stdenv.lib.licenses.bsd3;
|
|
platforms = stdenv.lib.platforms.linux;
|
|
};
|
|
}
|