diff options
| author | uakci <uakci@uakci.pl> | 2022-05-13 22:52:49 +0200 |
|---|---|---|
| committer | uakci <uakci@uakci.pl> | 2022-05-13 22:58:41 +0200 |
| commit | 90b59a31316e0a171d986763494851e4c66b6579 (patch) | |
| tree | b1a6d827ff8dbec6474891c6551fb18cf9743fc4 | |
| parent | remove explicit nixpkgs input (diff) | |
| download | nuogai-90b59a31316e0a171d986763494851e4c66b6579.tar.gz nuogai-90b59a31316e0a171d986763494851e4c66b6579.zip | |
force-add imagemagick to PATH?
| -rw-r--r-- | flake.nix | 14 |
1 files changed, 9 insertions, 5 deletions
@@ -23,7 +23,7 @@ mkdir -p $out/share/fonts cp ${./ToaqScript.ttf} $out/share/fonts/ToaqScript.ttf ''; - imagemagick' = imagemagick.overrideAttrs + imagemagickWithPango = imagemagick.overrideAttrs (a: { buildInputs = a.buildInputs ++ [ pango ]; }); schemePkgs = lib.mapAttrs (name: { src, install, patches }: @@ -59,14 +59,18 @@ name = "nuogai"; src = ./.; modules = ./gomod2nix.toml; - propagatedBuildInputs = (builtins.attrValues schemePkgs) - ++ [ toaqScript imagemagick' ]; + buildInputs = builtins.attrValues schemePkgs; + nativeBuildInputs = [ makeWrapper ]; + postFixup = '' + wrapProgram $out/bin/nuogai --prefix PATH : ${ + lib.makeBinPath [ imagemagickWithPango ] + } + ''; }; in { defaultPackage = nuogai; packages = schemePkgs // { - inherit toaqScript nuogai; - imagemagickWithPango = imagemagick'; + inherit toaqScript nuogai imagemagickWithPango; }; nixosModule = { config, pkgs, lib, ... }@args: import ./module.nix (args // { inherit self system; }); |
