summaryrefslogtreecommitdiff
path: root/flake.nix
diff options
context:
space:
mode:
authoruakci <uakci@uakci.pl>2022-05-13 22:00:14 +0200
committeruakci <uakci@uakci.pl>2022-05-13 22:00:14 +0200
commit6b0785afd2c7dfb7ebcfeb2e811fec19823c07aa (patch)
tree2a5b0bb802648368e3a97eaa3a236137df8be1e2 /flake.nix
parentfix shell (diff)
downloadnuogai-6b0785afd2c7dfb7ebcfeb2e811fec19823c07aa.tar.gz
nuogai-6b0785afd2c7dfb7ebcfeb2e811fec19823c07aa.zip
dirty fix for imagemagick not showing up in $PATH
Diffstat (limited to 'flake.nix')
-rw-r--r--flake.nix18
1 files changed, 11 insertions, 7 deletions
diff --git a/flake.nix b/flake.nix
index 15483ae..5bba2e9 100644
--- a/flake.nix
+++ b/flake.nix
@@ -24,6 +24,8 @@
mkdir -p $out/share/fonts
cp ${./ToaqScript.ttf} $out/share/fonts/ToaqScript.ttf
'';
+ imagemagick' = imagemagick.overrideAttrs
+ (a: { buildInputs = a.buildInputs ++ [ pango ]; });
schemePkgs = lib.mapAttrs (name:
{ src, install, patches }:
pkgs.stdenv.mkDerivation {
@@ -58,16 +60,18 @@
name = "nuogai";
src = ./.;
modules = ./gomod2nix.toml;
- buildInputs = (builtins.attrValues schemePkgs) ++ [
- toaqScript
- (imagemagick.overrideAttrs
- (a: { buildInputs = a.buildInputs ++ [ pango ]; }))
- ];
+ buildInputs = (builtins.attrValues schemePkgs)
+ ++ [ toaqScript imagemagick' ];
};
in {
defaultPackage = nuogai;
- packages = schemePkgs // { inherit toaqScript nuogai; };
+ packages = schemePkgs // {
+ inherit toaqScript nuogai;
+ imagemagick = imagemagick';
+ };
nixosModule = { config, pkgs, lib, ... }@args:
import ./module.nix (args // { inherit self system; });
- }) // { inherit (gomod2nix) devShell; };
+ }) // {
+ inherit (gomod2nix) devShell;
+ };
}