diff options
| author | uakci <uakci@uakci.pl> | 2021-09-15 01:32:27 +0200 |
|---|---|---|
| committer | uakci <uakci@uakci.pl> | 2021-09-15 01:48:35 +0200 |
| commit | 38860e25ea17f81878efe496fccfd23de16dff56 (patch) | |
| tree | 71791a121ba10365e39e1bcb4ddd0b551a2d6a5e /flake.nix | |
| parent | initial (diff) | |
| download | nuogai-38860e25ea17f81878efe496fccfd23de16dff56.tar.gz nuogai-38860e25ea17f81878efe496fccfd23de16dff56.zip | |
preliminary nixos module
Diffstat (limited to '')
| -rw-r--r-- | flake.nix | 35 |
1 files changed, 16 insertions, 19 deletions
@@ -14,9 +14,7 @@ , serial-predicate-engine-upstream, flake-utils, ... }: { inherit (gomod2nix) devShell; - nixosModule = { config, system, ... }: { - config.fonts.fonts = [ self.packages.toaqScript.${system} ]; - }; + nixosModule = a: import ./module.nix (a // { inherit self; system = "x86_64-linux"; }); } // flake-utils.lib.eachDefaultSystem (system: let pkgs = (import nixpkgs { @@ -25,7 +23,8 @@ }).pkgs; in with pkgs; let - toaqScript = pkgs.writeTextDir "share/fonts/ToaqScript.ttf" ./ToaqScript.ttf; + toaqScript = + pkgs.writeTextDir "share/fonts/ToaqScript.ttf" ./ToaqScript.ttf; schemePkgs = lib.mapAttrs (name: { src, install, patches }: pkgs.stdenv.mkDerivation { @@ -53,22 +52,20 @@ ''; }; }; - nuogai = buildGoApplication { - vendorSha256 = null; - runVend = true; - name = "nuogai"; - src = ./.; - modules = ./gomod2nix.toml; - buildInputs = (builtins.attrValues schemePkgs) ++ [ - toaqScript - (imagemagick.overrideAttrs - (a: { buildInputs = a.buildInputs ++ [ pango ]; })) - ]; - }; + nuogai = buildGoApplication { + vendorSha256 = null; + runVend = true; + name = "nuogai"; + src = ./.; + modules = ./gomod2nix.toml; + buildInputs = (builtins.attrValues schemePkgs) ++ [ + toaqScript + (imagemagick.overrideAttrs + (a: { buildInputs = a.buildInputs ++ [ pango ]; })) + ]; + }; in { defaultPackage = nuogai; - packages = schemePkgs // { - inherit toaqScript nuogai; - }; + packages = schemePkgs // { inherit toaqScript nuogai; }; }); } |
