1{ lib, stdenv, fetchFromGitHub }:
2
3stdenv.mkDerivation rec {
4 pname = "libucontext";
5 version = "1.2";
6
7 src = fetchFromGitHub {
8 owner = "kaniini";
9 repo = pname;
10 rev = "v${version}";
11 hash = "sha256-fk3ZKkp3dsyeF6SOWSccr5MkKEwS4AAuosD/h+6wjSw=";
12 };
13
14 makeFlags = [ "DESTDIR=$(out)" ];
15
16 meta = with lib; {
17 homepage = "https://github.com/kaniini/libucontext";
18 description = "ucontext implementation featuring glibc-compatible ABI";
19 license = licenses.isc;
20 platforms = platforms.linux;
21 maintainers = [ ];
22 };
23}