diff options
| author | seth <[email protected]> | 2023-09-07 14:59:50 -0400 |
|---|---|---|
| committer | seth <[email protected]> | 2023-09-07 17:15:26 -0400 |
| commit | d5b333e95878fb895bc6bba402b9a3d920f737a3 (patch) | |
| tree | 1aa60b1831562a28d459cabf2a73678e23f9eb0b /parts/derivation.nix | |
| parent | 0221521df944b63a3c022a25edb9b4fb4a52ad26 (diff) | |
flake: refactor again
Diffstat (limited to 'parts/derivation.nix')
| -rw-r--r-- | parts/derivation.nix | 20 |
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]; + }; +} |
