mirror of
https://codeberg.org/leana8959/.files.git
synced 2026-02-01 22:49:41 +00:00
package with nix
This commit is contained in:
parent
46f265557a
commit
b8c4551440
2 changed files with 20 additions and 2 deletions
|
|
@ -1,10 +1,28 @@
|
|||
{
|
||||
lib,
|
||||
haskellPackages,
|
||||
haskell,
|
||||
symlinkJoin,
|
||||
makeWrapper,
|
||||
sane-backends, # scanimage
|
||||
poppler-utils, # mergepdf
|
||||
}:
|
||||
let
|
||||
inherit (haskell.lib.compose) justStaticExecutables;
|
||||
|
||||
drv = haskellPackages.callCabal2nix "easyscan" ./src { };
|
||||
in
|
||||
justStaticExecutables drv
|
||||
symlinkJoin {
|
||||
name = "easyscan";
|
||||
paths = [ (justStaticExecutables drv) ];
|
||||
buildInputs = [ makeWrapper ];
|
||||
postBuild = ''
|
||||
wrapProgram $out/bin/easyscan \
|
||||
--prefix PATH : "${
|
||||
lib.makeBinPath [
|
||||
sane-backends
|
||||
poppler-utils
|
||||
]
|
||||
}"
|
||||
'';
|
||||
}
|
||||
|
|
|
|||
|
|
@ -14,7 +14,7 @@ common common
|
|||
build-depends: base
|
||||
default-language: Haskell2010
|
||||
|
||||
executable manage
|
||||
executable easyscan
|
||||
import: common
|
||||
main-is: ./Main.hs
|
||||
build-depends:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue