summary refs log tree commit diff
path: root/pkgs/development/libraries/libbsd/default.nix
blob: bc88d8dc12cde543645b4fd6174f4557c6272e8f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
{ stdenv, fetchurl }:

let name = "libbsd-0.7.0";
in stdenv.mkDerivation {
  inherit name;

  src = fetchurl {
    url = "http://libbsd.freedesktop.org/releases/${name}.tar.xz";
    sha256 = "1fqhbi0vd6xjxazf633x388cc8qyn58l78704s0h6k63wlbhwfqg";
  };

  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;
  };
}