about summary refs log tree commit diff
path: root/pkgs/tools/video/atomicparsley
diff options
context:
space:
mode:
authorArtturin <Artturin@artturin.com>2021-08-10 03:48:29 +0300
committerArtturin <Artturin@artturin.com>2021-08-10 03:48:29 +0300
commit97f6138420257935de53bc39f7cf129b80298939 (patch)
tree83409e2f8b6f5a9f0f473c510639b27247075713 /pkgs/tools/video/atomicparsley
parent3f7771d65cca13a229e11f4aeaaf9245414a2134 (diff)
atomicparsley: 20210617.200601.1ac7c08 -> 20210715.151551.e7ad03a
and enable tests
Diffstat (limited to 'pkgs/tools/video/atomicparsley')
-rw-r--r--pkgs/tools/video/atomicparsley/default.nix21
1 files changed, 19 insertions, 2 deletions
diff --git a/pkgs/tools/video/atomicparsley/default.nix b/pkgs/tools/video/atomicparsley/default.nix
index 92059699e98b5..758fa56db50d7 100644
--- a/pkgs/tools/video/atomicparsley/default.nix
+++ b/pkgs/tools/video/atomicparsley/default.nix
@@ -2,13 +2,13 @@
 
 stdenv.mkDerivation rec {
   pname = "atomicparsley";
-  version = "20210617.200601.1ac7c08";
+  version = "20210715.151551.e7ad03a";
 
   src = fetchFromGitHub {
     owner = "wez";
     repo = pname;
     rev = version;
-    sha256 = "sha256-IhZe0vM41JhO8H79ZrRx4FRA4zfB6X0daC8QoE5MHmU=";
+    sha256 = "sha256-77yWwfdEul4uLsUNX1dLwj8K0ilcuBaTVKMyXDvKVx4=";
   };
 
   nativeBuildInputs = [ cmake ];
@@ -22,6 +22,23 @@ stdenv.mkDerivation rec {
     runHook postInstall
   '';
 
+  doCheck = true;
+
+  postPatch = ''
+    patchShebangs tests/test.sh
+  '';
+
+  # copying files so that we dont need to patch the test.sh
+  checkPhase = ''
+    (
+    cp AtomicParsley ../tests
+    cd ../tests
+    mkdir tests
+    mv *.mp4 tests
+    ./test.sh
+    )
+  '';
+
   meta = with lib; {
     description = "A CLI program for reading, parsing and setting metadata into MPEG-4 files";
     homepage = "https://github.com/wez/atomicparsley";