Merge pull request #241324 from 999eagle/feat/millipixels
millipixels: init at 0.22.0
This commit is contained in:
commit
b14239f3cd
1 changed files with 70 additions and 0 deletions
70
pkgs/by-name/mi/millipixels/package.nix
Normal file
70
pkgs/by-name/mi/millipixels/package.nix
Normal file
|
@ -0,0 +1,70 @@
|
|||
{ lib
|
||||
, stdenv
|
||||
, fetchFromGitLab
|
||||
, glib
|
||||
, meson
|
||||
, ninja
|
||||
, pkg-config
|
||||
, rustc
|
||||
, libbsd
|
||||
, libcamera
|
||||
, gtk3
|
||||
, libtiff
|
||||
, zbar
|
||||
, libjpeg
|
||||
, libexif
|
||||
, libraw
|
||||
, libpulseaudio
|
||||
, ffmpeg-headless
|
||||
, v4l-utils
|
||||
, makeWrapper
|
||||
, python3
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "millipixels";
|
||||
version = "0.22.0";
|
||||
|
||||
src = fetchFromGitLab {
|
||||
owner = "Librem5";
|
||||
repo = pname;
|
||||
rev = "v${version}";
|
||||
domain = "source.puri.sm";
|
||||
hash = "sha256-pRREQRYyD9+dpRvcfsNiNthFy08Yeup9xDn+x+RWDrE=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
glib
|
||||
meson
|
||||
ninja
|
||||
pkg-config
|
||||
rustc
|
||||
makeWrapper
|
||||
];
|
||||
|
||||
buildInputs = [
|
||||
libbsd
|
||||
libcamera
|
||||
gtk3
|
||||
libtiff
|
||||
zbar
|
||||
libpulseaudio
|
||||
libraw
|
||||
libexif
|
||||
libjpeg
|
||||
python3
|
||||
];
|
||||
|
||||
postInstall = ''
|
||||
wrapProgram $out/bin/millipixels \
|
||||
--prefix PATH : ${lib.makeBinPath [ v4l-utils ffmpeg-headless ]}
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "Camera application for the Librem 5";
|
||||
homepage = "https://source.puri.sm/Librem5/millipixels";
|
||||
license = licenses.gpl3Only;
|
||||
maintainers = with maintainers; [ _999eagle ];
|
||||
platforms = platforms.linux;
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue