From d5b333e95878fb895bc6bba402b9a3d920f737a3 Mon Sep 17 00:00:00 2001 From: seth Date: Thu, 7 Sep 2023 14:59:50 -0400 Subject: flake: refactor again --- parts/derivation.nix | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 parts/derivation.nix (limited to 'parts/derivation.nix') 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]; + }; +} -- cgit v1.2.3