Revert "Merge pull request 'Rewrite easyscan in haskell' (#31) from easyscan2 into trunk"

This reverts commit b3fb8aff73, reversing
changes made to a7aa536cf6.
This commit is contained in:
Primrose 2026-02-01 23:08:33 +01:00
parent 56cb062447
commit 25df5b3993
Signed by: primrose
GPG key ID: 4E887A4CA9714ADA
5 changed files with 76 additions and 148 deletions

View file

@ -1,28 +1,19 @@
{
lib,
haskellPackages,
haskell,
symlinkJoin,
makeWrapper,
sane-backends, # scanimage
poppler-utils, # mergepdf
writeShellApplication,
sane-backends,
poppler-utils,
fzf,
ghostscript,
}:
let
inherit (haskell.lib.compose) justStaticExecutables;
drv = haskellPackages.callCabal2nix "easyscan" ./src { };
in
symlinkJoin {
writeShellApplication {
name = "easyscan";
paths = [ (justStaticExecutables drv) ];
buildInputs = [ makeWrapper ];
postBuild = ''
wrapProgram $out/bin/easyscan \
--prefix PATH : "${
lib.makeBinPath [
sane-backends
poppler-utils
]
}"
'';
runtimeInputs = [
sane-backends
poppler-utils
fzf
ghostscript
];
text = builtins.readFile ./easyscan.sh;
}