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,
|
haskellPackages,
|
||||||
haskell,
|
haskell,
|
||||||
|
symlinkJoin,
|
||||||
|
makeWrapper,
|
||||||
|
sane-backends, # scanimage
|
||||||
|
poppler-utils, # mergepdf
|
||||||
}:
|
}:
|
||||||
let
|
let
|
||||||
inherit (haskell.lib.compose) justStaticExecutables;
|
inherit (haskell.lib.compose) justStaticExecutables;
|
||||||
|
|
||||||
drv = haskellPackages.callCabal2nix "easyscan" ./src { };
|
drv = haskellPackages.callCabal2nix "easyscan" ./src { };
|
||||||
in
|
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
|
build-depends: base
|
||||||
default-language: Haskell2010
|
default-language: Haskell2010
|
||||||
|
|
||||||
executable manage
|
executable easyscan
|
||||||
import: common
|
import: common
|
||||||
main-is: ./Main.hs
|
main-is: ./Main.hs
|
||||||
build-depends:
|
build-depends:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue