2015-03-31 15:49:38 +01:00
|
|
|
{ stdenv, ghcWithPackages, gtk3, makeWrapper }:
|
|
|
|
|
|
|
|
let
|
2015-04-16 13:52:46 +01:00
|
|
|
leksahEnv = ghcWithPackages (self: [ self.leksah-server self.leksah self.cabal-install ]);
|
2015-03-31 15:49:38 +01:00
|
|
|
in stdenv.mkDerivation {
|
|
|
|
name = "leksah";
|
|
|
|
|
|
|
|
buildInputs = [ gtk3 ];
|
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
|
|
|
|
|
|
|
buildCommand = ''
|
|
|
|
mkdir -p $out/bin
|
|
|
|
makeWrapper ${leksahEnv}/bin/leksah $out/bin/leksah \
|
|
|
|
--prefix PATH : "${leksahEnv}/bin" \
|
|
|
|
--prefix XDG_DATA_DIRS : "$GSETTINGS_SCHEMAS_PATH"
|
|
|
|
'';
|
|
|
|
}
|