summaryrefslogtreecommitdiff
path: root/parts/derivation.nix
diff options
context:
space:
mode:
Diffstat (limited to 'parts/derivation.nix')
-rw-r--r--parts/derivation.nix20
1 files changed, 20 insertions, 0 deletions
diff --git a/parts/derivation.nix b/parts/derivation.nix
new file mode 100644
index 0000000..f95446f
--- /dev/null
+++ b/parts/derivation.nix
@@ -0,0 +1,20 @@
+{
+ lib,
+ stdenv,
+ craneLib,
+ self,
+ ...
+}:
+craneLib.buildPackage {
+ src = craneLib.cleanCargoSource self;
+ inherit (self.packages.${stdenv.hostPlatform.system}) cargoArtifacts;
+
+ meta = with lib; {
+ mainProgram = "teawiebot";
+ description = "funni bot";
+ homepage = "https://github.com/getchoo/teawiebot";
+ license = licenses.mit;
+ platforms = with platforms; unix;
+ maintainers = with maintainers; [getchoo];
+ };
+}