pixitracker: init at 1.6.5
This commit is contained in:
parent
9b6f60ce8a
commit
7e85f62e40
@ -6,7 +6,7 @@
|
|||||||
# commands such as:
|
# commands such as:
|
||||||
# nix-build -A mypackage
|
# nix-build -A mypackage
|
||||||
|
|
||||||
{ pkgs ? import <nixos-unstable> {} }:
|
{ pkgs ? import <unstable> {} }:
|
||||||
|
|
||||||
let
|
let
|
||||||
# wsgiserver = pkgs.callPackage ./pkgs/python-modules/wsgiserver { buildPythonPackage = pkgs.python3Packages.buildPythonPackage; fetchPypi = pkgs.python3Packages.fetchPypi; };
|
# 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 { };
|
# radical-native = pkgs.callPackage ./pkgs/radical-native { };
|
||||||
photini = pkgs.libsForQt5.callPackage ./pkgs/photini { };
|
photini = pkgs.libsForQt5.callPackage ./pkgs/photini { };
|
||||||
|
|
||||||
|
pixitracker = pkgs.callPackage ./pkgs/pixitracker { };
|
||||||
|
|
||||||
plotbitrate = pkgs.callPackage ./pkgs/plotbitrate { };
|
plotbitrate = pkgs.callPackage ./pkgs/plotbitrate { };
|
||||||
|
|
||||||
wii-u-gc-adapter = pkgs.callPackage ./pkgs/wii-u-gc-adapter { };
|
wii-u-gc-adapter = pkgs.callPackage ./pkgs/wii-u-gc-adapter { };
|
||||||
|
35
pkgs/pixitracker/default.nix
Normal file
35
pkgs/pixitracker/default.nix
Normal file
@ -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
Block a user