package with cabal

This commit is contained in:
Primrose 2026-02-01 16:50:16 +01:00
parent 81bb6fad24
commit 46f265557a
Signed by: primrose
GPG key ID: 4E887A4CA9714ADA
5 changed files with 35 additions and 85 deletions

View file

@ -1,19 +1,10 @@
{
writeShellApplication,
sane-backends,
poppler-utils,
fzf,
ghostscript,
haskellPackages,
haskell,
}:
writeShellApplication {
name = "easyscan";
let
inherit (haskell.lib.compose) justStaticExecutables;
runtimeInputs = [
sane-backends
poppler-utils
fzf
ghostscript
];
text = builtins.readFile ./easyscan.sh;
}
drv = haskellPackages.callCabal2nix "easyscan" ./src { };
in
justStaticExecutables drv