From 57dfd5cfff29797821b6acb71778eeb3ee4dfcbd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20L=C3=B8vbr=C3=B8tte=20Olsen?= Date: Wed, 29 Apr 2020 01:16:30 +0200 Subject: [PATCH] package plotbitrate --- default.nix | 4 +++- pkgs/plotbitrate/default.nix | 31 +++++++++++++++++++++++++++++++ 2 files changed, 34 insertions(+), 1 deletion(-) create mode 100644 pkgs/plotbitrate/default.nix diff --git a/default.nix b/default.nix index a294ff1..0e0b03d 100644 --- a/default.nix +++ b/default.nix @@ -26,9 +26,11 @@ radical-native = pkgs.callPackage ./pkgs/radical-native { }; photini = pkgs.libsForQt5.callPackage ./pkgs/photini { }; + plotbitrate = pkgs.callPackage ./pkgs/plotbitrate { }; + mangohud = pkgs.callPackage ./pkgs/MangoHUD { }; - botamusique = pkgs.callPackage ./pkgs/botamusique {}; + botamusique = pkgs.callPackage ./pkgs/botamusique { }; } diff --git a/pkgs/plotbitrate/default.nix b/pkgs/plotbitrate/default.nix new file mode 100644 index 0000000..ed5fe78 --- /dev/null +++ b/pkgs/plotbitrate/default.nix @@ -0,0 +1,31 @@ +{ stdenv, fetchFromGitHub, python3, ffmpeg}: + +stdenv.mkDerivation { + name = "rank_photos"; + version = "1.0.0"; + + src = fetchFromGitHub { + owner = "zeroepoch"; + repo = "plotbitrate"; + rev = "4553220ed5132503c0dda777bcc41b83ec866004"; + sha256 = "1d93nygc9imz576akh2vgvnyb7z6s7xva5s5i8vg1kxa5060an7y"; + }; + + buildInputs = [ + (python3.withPackages (pythonPackages: with pythonPackages; [ + matplotlib + ])) + ffmpeg + ]; + + installPhase = '' + mkdir -p $out/bin + cp ./plotbitrate.py $out/bin/plotbitrate + chmod +x $out/bin/plotbitrate + ''; + + meta = { + description = "plot bitrate in video."; + }; + +}