summary refs log tree commit diff
path: root/pkgs/development/libraries/libbsd/default.nix
blob: 3c28b95c06672f51489ff0bb8acb8db85e767728 (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
24
{ stdenv, fetchurl }:

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

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

  patchPhase = ''
    substituteInPlace Makefile \
      --replace "/usr" "$out" \
      --replace "{exec_prefix}" "{prefix}"
  '';

  meta = { 
    description = "Common functions found on BSD systems";
    homepage = http://libbsd.freedesktop.org/;
    license = "BSD3";
  };
}