13 stdenv.mkDerivation rec {
17 src = fetchFromGitHub {
21 sha256 = "sha256-QUy38kJzMbYOyT86as4/yq2ctcszSnB8a3eVWxgd4Fo=";
25 sed -i -e "s|-ltermcap|-lncurses|" Makefile
28 nativeBuildInputs = [ pkg-config ];
35 ++ lib.optionals stdenv.hostPlatform.isDarwin [
41 makeFlags = [ "DESTDIR=$(out)" ];
44 description = "Set environment variables with macOS keychain or D-Bus secret service";
45 homepage = "https://github.com/sorah/envchain";
46 license = licenses.mit;
47 platforms = platforms.unix;
49 mainProgram = "envchain";