mirror of
https://codeberg.org/leana8959/.files.git
synced 2026-02-04 07:59:40 +00:00
Revert "Merge pull request 'Rewrite easyscan in haskell' (#31) from easyscan2 into trunk"
This reverts commitb3fb8aff73, reversing changes made toa7aa536cf6.
This commit is contained in:
parent
56cb062447
commit
25df5b3993
5 changed files with 76 additions and 148 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue