From 4d93febf0e30a27b8483272399fa568b42999b4f Mon Sep 17 00:00:00 2001 From: magicquark <198001825+magicquark@users.noreply.github.com> Date: Sun, 7 Sep 2025 04:35:33 +0100 Subject: [PATCH] nota: 1.0 -> 1.0-unstable-2023-03-01 Homepage: https://github.com/pouyakary/Nota The url in the fetchurl function no longer exists, the website domain is for sale. The same holds for the homepage listed. Therefore, the urls have been updated to the current versions. The description has been updated to align with the README for pkgs contributions, namely, that the description should "Avoid subjective language." --- pkgs/by-name/no/nota/package.nix | 21 ++++++++++----------- 1 file changed, 10 insertions(+), 11 deletions(-) diff --git a/pkgs/by-name/no/nota/package.nix b/pkgs/by-name/no/nota/package.nix index c955da64ab06..e5abe147a067 100644 --- a/pkgs/by-name/no/nota/package.nix +++ b/pkgs/by-name/no/nota/package.nix @@ -1,22 +1,21 @@ { haskellPackages, - fetchurl, + fetchFromGitHub, lib, }: haskellPackages.mkDerivation rec { pname = "nota"; - version = "1.0"; + version = "1.0-unstable-2023-03-01"; - # Can't use fetchFromGitLab since codes.kary.us doesn't support https - src = fetchurl { - url = "http://codes.kary.us/nota/nota/-/archive/V${version}/nota-V${version}.tar.bz2"; - sha256 = "0bbs6bm9p852hvqadmqs428ir7m65h2prwyma238iirv42pk04v8"; + src = fetchFromGitHub { + owner = "pouyakary"; + repo = "Nota"; + rev = "3548b864e5aa30ffbf1704a79dbb3bd3aab813be"; + hash = "sha256-96T9uxUEV22/vn6aoInG1UPXbzlDHswOSkywkdwsMeY="; }; - postUnpack = '' - export sourceRoot=$sourceRoot/source - ''; + sourceRoot = "${src.name}/source"; isLibrary = false; isExecutable = true; @@ -37,8 +36,8 @@ haskellPackages.mkDerivation rec { time ]; - description = "Most beautiful command line calculator"; - homepage = "https://kary.us/nota"; + description = "Command line calculator"; + homepage = "https://pouyakary.org/nota/"; license = lib.licenses.mpl20; maintainers = [ ]; mainProgram = "nota";