Skip to content

Commit

Permalink
xfel: add meta data
Browse files Browse the repository at this point in the history
  • Loading branch information
Emin017 committed Jul 15, 2024
1 parent ec10a9e commit d7c9cb6
Showing 1 changed file with 38 additions and 32 deletions.
70 changes: 38 additions & 32 deletions pkgs/xfel/default.nix
Original file line number Diff line number Diff line change
@@ -1,41 +1,47 @@
{
stdenv,
fetchFromGitHub,
pkg-config,
binutils,
libusb1,
gnumake
stdenv,
fetchFromGitHub,
pkg-config,
binutils,
libusb1,
gnumake,
}:
stdenv.mkDerivation {
pname = "xfel";
version = "latest";
stdenv.mkDerivation {
pname = "xfel";
version = "latest";

src = fetchFromGitHub {
owner = "xboot";
repo = "xfel";
rev = "1383b836cb933d5797a7394c6a9d2dbb061bdc95";
sha256 = "sha256-PxxXtoQLSM9P+AZ6aqKKVDJZNjgbFw6SGRCo0jVXaDA=";
};
src = fetchFromGitHub {
owner = "xboot";
repo = "xfel";
rev = "1383b836cb933d5797a7394c6a9d2dbb061bdc95";
sha256 = "sha256-PxxXtoQLSM9P+AZ6aqKKVDJZNjgbFw6SGRCo0jVXaDA=";
};

buildInputs = [
pkg-config
binutils
libusb1
];
buildInputs = [
pkg-config
binutils
libusb1
];

nativeBuildInputs = [
gnumake
];
nativeBuildInputs = [
gnumake
];

configurePhase = ''
export DESTDIR=$out
'';
configurePhase = ''
export DESTDIR=$out
'';

buildPhase = ''
make -j`nproc`
'';
buildPhase = ''
make -j`nproc`
'';

installPhase = ''
make install
'';
installPhase = ''
make install
'';

meta = {
description = "Tiny FEL tools for Allwinner SOC";
homepage = "https://xboot.org/xfel";
license = lib.licenses.mit;
};
}

0 comments on commit d7c9cb6

Please sign in to comment.