diff options
| author | Akshay Nair <phenax5@gmail.com> | 2025-10-24 18:20:09 +0530 |
|---|---|---|
| committer | Akshay Nair <phenax5@gmail.com> | 2025-10-24 18:21:05 +0530 |
| commit | cae48d231a82cd451658e3745ab23e1a2057d406 (patch) | |
| tree | 58e37b337925ec574f9c6af3a187237372bc60ff /flake.nix | |
| parent | a3cc21ebb749c1e5071d857990c6aaed0d182840 (diff) | |
| download | daffm-cae48d231a82cd451658e3745ab23e1a2057d406.tar.gz daffm-cae48d231a82cd451658e3745ab23e1a2057d406.zip | |
Add manpage for documentation
Diffstat (limited to 'flake.nix')
| -rw-r--r-- | flake.nix | 13 |
1 files changed, 9 insertions, 4 deletions
@@ -19,10 +19,13 @@ ./exe ./lib ./specs + ./docs ./daffm.cabal ]; }); - otherFiles = []; + installFiles = [ + { source = ./docs/daffm.1; target = "$out/share/man/man1/daffm.1"; } + ]; configurationFlags = [ "--ghc-options=-O2" ]; @@ -30,7 +33,7 @@ pkg-config ]; - devPackages = with pkgs; [just]; + devPackages = with pkgs; [ just pandoc ]; in { haskellProjects.default = { inherit projectRoot; @@ -44,8 +47,10 @@ strip = true; custom = drv: (pkgs.haskell.lib.compose.appendConfigureFlags configurationFlags drv).overrideAttrs (old: { - preBuild = '' - ${toString (map (f: ''cp -r ${f.source} ${f.target};'') otherFiles)} + postInstall = '' + ${toString (map (f: '' + install -Dm644 "${f.source}" "${f.target}"; + '') installFiles)} ''; }) ; |
