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/packages.nix | |
| parent | 0221521df944b63a3c022a25edb9b4fb4a52ad26 (diff) | |
flake: refactor again
Diffstat (limited to 'parts/packages.nix')
| -rw-r--r-- | parts/packages.nix | 20 |
1 files changed, 3 insertions, 17 deletions
diff --git a/parts/packages.nix b/parts/packages.nix index f44ac50..6c5d10b 100644 --- a/parts/packages.nix +++ b/parts/packages.nix @@ -4,25 +4,11 @@ pkgs, system, ... - }: let - inherit (pkgs.lib) licenses maintainers platforms; - inherit (craneLib) buildPackage; - in { + }: { packages = { - cargoArtifacts = craneLib.buildDepsOnly {src = self;}; + cargoArtifacts = craneLib.buildDepsOnly {src = craneLib.cleanCargoSource self;}; - teawiebot = buildPackage { - src = self; - inherit (self.packages.${system}) cargoArtifacts; - - meta = { - description = "funni bot"; - homepage = "https://github.com/getchoo/teawiebot"; - license = licenses.mit; - platforms = platforms.unix; - maintainers = with maintainers; [getchoo]; - }; - }; + teawiebot = pkgs.callPackage ./derivation.nix {inherit craneLib self;}; teawiebot-smol = self.packages.${system}.teawiebot.overrideAttrs (_: { |
