I rewritten my package configs, using hints, you gave me there: Build GoLang code provided not as Go module
webhook.nix
{ pkgs, ... }:
{
nixpkgs.overlays = [(self: super: {
webhook-server = self.callPackage ./webhook-server.nix {};
})];
}
webhook-server.nix
{ pkgs, rustPlatform, stdenv, fetchFromGitHub, ... }:
rustPlatform.buildRustPackage rec {
pname = "webhook-server";
version = "0.1.4";
src = fetchFromGitHub {
owner = "Nukesor";
repo = "webhook-server";
rev = "0.1.4";
sha256 = "1iga3320mgi7m853la55xip514a3chqsdi1a1rwv25lr9b1p7vd3";
};
cargoSha256 = "1ykq82pi537qnzx7rj7njh6nmknygz22yd40sljfrayly9yhdran";
verifyCargoDeps = true;
meta = with stdenv.lib; {
description = "Trigger program/script execution on your server via http calls";
homepage = https://github.com/nukesor/webhook-server;
license = licenses.mit;
maintainers = [ maintainers.nukesor ];
platforms = platforms.all;
};
}
Crate build process was successful, but it seems that no binary was produced. Am I again doing something wrong?
I was expecting to see webhookserver
binary at /nix/store/hmxq76cj8hdfxzcj9an08q3n37nw0ws2-webhook-server-0.1.4/bin
, but there were no such thing
There’s only rg
binary in there