extra-nixpkgs/pkgs/c/cetcd/package.nix
Rongsong Shen c28b44152f cetcd
2025-11-05 16:42:06 +08:00

40 lines
587 B
Nix

{
lib,
stdenv,
fetchFromGitHub,
pkgs,
...
}:
stdenv.mkDerivation {
pname = "cetcd";
version = "1.0.0";
src = fetchFromGitHub {
owner = "shen390s";
repo = "cetcd";
rev = "master";
# sha256 = "sha256-9dzSc3w+yxYzsF/rZe3qIarKOpjt2zvIyjuS5FXngIM=";
};
nativeBuildInputs = [
pkgs.make
pkgs.curl
pkgs.pkg-config
pkgs.yajl
];
configurePhase = ''
true
'';
buildPhase = ''
make prefix=$out
'';
installPhase = ''
runHook preInstall
make install prefix=$out
runHook postInstall
'';
}