pixitracker: init at 1.6.5
This commit is contained in:
parent
9b6f60ce8a
commit
7e85f62e40
|
@ -6,7 +6,7 @@
|
|||
# commands such as:
|
||||
# nix-build -A mypackage
|
||||
|
||||
{ pkgs ? import <nixos-unstable> {} }:
|
||||
{ pkgs ? import <unstable> {} }:
|
||||
|
||||
let
|
||||
# wsgiserver = pkgs.callPackage ./pkgs/python-modules/wsgiserver { buildPythonPackage = pkgs.python3Packages.buildPythonPackage; fetchPypi = pkgs.python3Packages.fetchPypi; };
|
||||
|
@ -42,6 +42,8 @@ rec {
|
|||
# radical-native = pkgs.callPackage ./pkgs/radical-native { };
|
||||
photini = pkgs.libsForQt5.callPackage ./pkgs/photini { };
|
||||
|
||||
pixitracker = pkgs.callPackage ./pkgs/pixitracker { };
|
||||
|
||||
plotbitrate = pkgs.callPackage ./pkgs/plotbitrate { };
|
||||
|
||||
wii-u-gc-adapter = pkgs.callPackage ./pkgs/wii-u-gc-adapter { };
|
||||
|
|
|
@ -0,0 +1,35 @@
|
|||
{ lib, stdenv, fetchzip, autoPatchelfHook, writeShellScript
|
||||
, libglvnd, glibc, alsaLib, SDL2
|
||||
}:
|
||||
|
||||
let
|
||||
script = writeShellScript "pixitracker-launch" ''
|
||||
cd @out@/lib
|
||||
./bin/pixilang_linux_x86_64 boot.pixicode
|
||||
'';
|
||||
in
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "pixitracker";
|
||||
version = "1.6.5";
|
||||
|
||||
src = fetchzip {
|
||||
url = "https://www.warmplace.ru/soft/pixitracker/${pname}-${version}.zip";
|
||||
sha256 = "sha256-X4FnITdLs2WXJvM6nSZH2ANUBb7BT8J1FgCQ21j4fa4=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ autoPatchelfHook ];
|
||||
buildInputs = [ libglvnd glibc alsaLib SDL2 ];
|
||||
|
||||
installPhase = ''
|
||||
runHook preInstall;
|
||||
|
||||
mkdir -p "$out/lib" "$out/bin"
|
||||
mv * "$out/lib"
|
||||
|
||||
cp ${script} $out/bin/pixitracker
|
||||
sed -i s#@out@#$out# $out/bin/pixitracker
|
||||
|
||||
runHook postInstall;
|
||||
'';
|
||||
|
||||
}
|
Loading…
Reference in New Issue