From 74273ed64153450ab8d3e54b122d784efcf85822 Mon Sep 17 00:00:00 2001 From: Emile Date: Tue, 29 Oct 2024 22:41:41 +0100 Subject: remarvin init --- nix/pkgs/remarvin/default.nix | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 nix/pkgs/remarvin/default.nix (limited to 'nix/pkgs/remarvin/default.nix') diff --git a/nix/pkgs/remarvin/default.nix b/nix/pkgs/remarvin/default.nix new file mode 100644 index 0000000..1da157f --- /dev/null +++ b/nix/pkgs/remarvin/default.nix @@ -0,0 +1,35 @@ +{ + pkgs, + lib, + fetchgit, +}: + +pkgs.buildGoModule rec { + name = "remarvin-${version}"; + version = "0.1.1"; + + src = fetchgit { + url = "git://git.emile.space/remarvin.git"; + hash = "sha256-UahNwhsxFGSpaVTk2EFtjt/MCB4Ec/08QStylL2QPUM="; + }; + + vendorHash = null; + CGO_ENABLED = 0; + subPackages = [ "src" ]; + + postInstall = '' + mkdir -p $out + cp -r templates $out + + mv $out/bin/src $out/bin/remarvin + ''; + + doCheck = false; + + meta = { + description = "A small marvin bot"; + homepage = src.url; + license = lib.licenses.mit; + maintainers = with lib.maintainers; [ hanemile ]; + }; +} -- cgit 1.4.1