aboutsummaryrefslogtreecommitdiff
path: root/flake.nix
diff options
context:
space:
mode:
authorAkshay Nair <phenax5@gmail.com>2025-10-24 18:20:09 +0530
committerAkshay Nair <phenax5@gmail.com>2025-10-24 18:21:05 +0530
commitcae48d231a82cd451658e3745ab23e1a2057d406 (patch)
tree58e37b337925ec574f9c6af3a187237372bc60ff /flake.nix
parenta3cc21ebb749c1e5071d857990c6aaed0d182840 (diff)
downloaddaffm-cae48d231a82cd451658e3745ab23e1a2057d406.tar.gz
daffm-cae48d231a82cd451658e3745ab23e1a2057d406.zip
Add manpage for documentation
Diffstat (limited to 'flake.nix')
-rw-r--r--flake.nix13
1 files changed, 9 insertions, 4 deletions
diff --git a/flake.nix b/flake.nix
index 3795d37..68140fc 100644
--- a/flake.nix
+++ b/flake.nix
@@ -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)}
'';
})
;