uboot: (firmwareOdroidC2/C4) don't invoke patch tool, use patches = [] instead
https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
This commit is contained in:
commit
56de2bcd43
30691 changed files with 3076956 additions and 0 deletions
43
pkgs/applications/office/flexibee/default.nix
Normal file
43
pkgs/applications/office/flexibee/default.nix
Normal file
|
|
@ -0,0 +1,43 @@
|
|||
{ lib, stdenv, fetchurl, makeWrapper, jre }:
|
||||
|
||||
let
|
||||
version = "2021.2.1";
|
||||
majorVersion = builtins.substring 0 6 version;
|
||||
in
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "flexibee";
|
||||
inherit version;
|
||||
|
||||
src = fetchurl {
|
||||
url = "http://download.flexibee.eu/download/${majorVersion}/${version}/${pname}-${version}.tar.gz";
|
||||
sha256 = "sha256-WorRyfjWucV8UhAjvuW+22CRzPcz5tjXF7Has4wrLMI=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ makeWrapper ];
|
||||
|
||||
prePatch = ''
|
||||
substituteInPlace usr/sbin/flexibee-server \
|
||||
--replace "/usr/share/flexibee" $out \
|
||||
--replace "/var/run" "/run"
|
||||
'';
|
||||
|
||||
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
cp -R usr/share/flexibee/ $out/
|
||||
install -Dm755 usr/bin/flexibee $out/bin/flexibee
|
||||
install -Dm755 usr/sbin/flexibee-server $out/bin/flexibee-server
|
||||
wrapProgram $out/bin/flexibee --set JAVA_HOME "${jre}"
|
||||
wrapProgram $out/bin/flexibee-server --set JAVA_HOME "${jre}"
|
||||
runHook postInstall
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "Client for an accouting economic system";
|
||||
homepage = "https://www.flexibee.eu/";
|
||||
license = licenses.unfree;
|
||||
maintainers = [ maintainers.mmahut ];
|
||||
platforms = [ "x86_64-linux" ];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue