mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-02 19:14:14 +00:00
27 lines
576 B
Nix
27 lines
576 B
Nix
{ stdenv, newScope, makeWrapper, electron, xdg_utils }:
|
|
|
|
let
|
|
callPackage = newScope self;
|
|
self = {
|
|
fetchNodeModules = callPackage ./fetchNodeModules.nix {};
|
|
rambox-bare = callPackage ./bare.nix {};
|
|
sencha = callPackage ./sencha {};
|
|
};
|
|
in
|
|
|
|
with self;
|
|
|
|
stdenv.mkDerivation {
|
|
name = "rambox-${rambox-bare.version}";
|
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
|
|
|
unpackPhase = ":";
|
|
|
|
installPhase = ''
|
|
makeWrapper ${electron}/bin/electron $out/bin/rambox \
|
|
--add-flags "${rambox-bare} --without-update" \
|
|
--prefix PATH : ${xdg_utils}/bin
|
|
'';
|
|
}
|