summary refs log tree commit diff
path: root/pkgs/applications/misc
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/applications/misc')
-rw-r--r--pkgs/applications/misc/hmm/default.nix34
-rw-r--r--pkgs/applications/misc/stag/default.nix21
-rw-r--r--pkgs/applications/misc/yewtube/default.nix4
3 files changed, 50 insertions, 9 deletions
diff --git a/pkgs/applications/misc/hmm/default.nix b/pkgs/applications/misc/hmm/default.nix
new file mode 100644
index 00000000000..a78b953875c
--- /dev/null
+++ b/pkgs/applications/misc/hmm/default.nix
@@ -0,0 +1,34 @@
+{ lib
+, rustPlatform
+, fetchCrate
+, perl
+}:
+
+rustPlatform.buildRustPackage rec {
+  pname = "hmm";
+  version = "0.6.0";
+
+  src = fetchCrate {
+    pname = "hmmcli";
+    inherit version;
+    hash = "sha256-WPePzqZ2iGeJ7kzTj8eg7q1JEjw91WY7gViJJ46SLRY=";
+  };
+
+  cargoHash = "sha256-9Z49aPfcIdMfYCFAXsxFxcfhaLjtPod+nMFHDmvgDY0=";
+
+  nativeCheckInputs = [
+    perl
+  ];
+
+  preCheck = ''
+    export HOME=$(mktemp -d)
+  '';
+
+  meta = with lib; {
+    description = "A small command-line note-taking app";
+    homepage = "https://github.com/samwho/hmm";
+    changelog = "https://github.com/samwho/hmm/releases/tag/v${version}";
+    license = licenses.mit;
+    maintainers = with maintainers; [ figsoda ];
+  };
+}
diff --git a/pkgs/applications/misc/stag/default.nix b/pkgs/applications/misc/stag/default.nix
index 21ca26012dd..d8360dd7ccf 100644
--- a/pkgs/applications/misc/stag/default.nix
+++ b/pkgs/applications/misc/stag/default.nix
@@ -1,16 +1,24 @@
-{ lib, stdenv, fetchFromGitHub, curses }:
+{ lib, stdenv, fetchFromGitHub, curses, fetchpatch }:
 
-stdenv.mkDerivation {
+stdenv.mkDerivation (finalAttrs: {
   pname = "stag";
-  version = "1.0";
+  version = "1.0.0";
 
   src = fetchFromGitHub {
     owner = "seenaburns";
     repo = "stag";
-    rev = "90e2964959ea8242349250640d24cee3d1966ad6";
-    sha256 = "1yrzjhcwrxrxq5jj695wvpgb0pz047m88yq5n5ymkcw5qr78fy1v";
+    rev = "v${finalAttrs.version}";
+    hash = "sha256-O3iHTsaFs1l9sQV7hOoh4F+w3t28JCNlwT33zBmUP/s=";
   };
 
+  patches = [
+    # fix compilation on aarch64 https://github.com/seenaburns/stag/pull/19
+    (fetchpatch {
+      url = "https://github.com/seenaburns/stag/commit/0a5a8533d0027b2ee38d109adb0cb7d65d171497.diff";
+      hash = "sha256-fqcsStduL3qfsp5wLJ0GLfEz0JRnOqsvpXB4gdWwVzg=";
+    })
+  ];
+
   buildInputs = [ curses ];
 
   installPhase = ''
@@ -18,11 +26,10 @@ stdenv.mkDerivation {
   '';
 
   meta = with lib; {
-    broken = (stdenv.isLinux && stdenv.isAarch64);
     homepage = "https://github.com/seenaburns/stag";
     description = "Terminal streaming bar graph passed through stdin";
     license = licenses.bsdOriginal;
     maintainers = with maintainers; [ matthiasbeyer ];
     platforms = platforms.unix;
   };
-}
+})
diff --git a/pkgs/applications/misc/yewtube/default.nix b/pkgs/applications/misc/yewtube/default.nix
index 6f56dd8ff4e..b6dfbafb1cd 100644
--- a/pkgs/applications/misc/yewtube/default.nix
+++ b/pkgs/applications/misc/yewtube/default.nix
@@ -2,13 +2,13 @@
 
 python3Packages.buildPythonApplication rec {
   pname = "yewtube";
-  version = "2.10.2";
+  version = "2.10.4";
 
   src = fetchFromGitHub {
     owner = "mps-youtube";
     repo = "yewtube";
     rev = "refs/tags/v${version}";
-    hash = "sha256-yqztce6t7VTtrumxbhbikYY54FiyUaegBPYSnF4wTkU=";
+    hash = "sha256-v0ePyY+7GUlnv1WLKn7GuIv+A2QdXObRnTyMkk5hI1U=";
   };
 
   postPatch = ''