shipments: use fetchFromSourcehut

+6 -4
+6 -4
pkgs/applications/misc/shipments/default.nix
··· 1 1 { desktop-file-utils 2 - , fetchurl 2 + , fetchFromSourcehut 3 3 , gobject-introspection 4 4 , gtk3 5 5 , lib ··· 16 16 pname = "shipments"; 17 17 version = "0.3.0"; 18 18 19 - src = fetchurl { 20 - url = "https://git.sr.ht/~martijnbraam/shipments/archive/${version}.tar.gz"; 21 - sha256 = "1znybldx21wjnb8qy6q9p52pi6lfz81743xgrnjmvjji4spwaipf"; 19 + src = fetchFromSourcehut { 20 + owner = "~martijnbraam"; 21 + repo = "shipments"; 22 + rev = version; 23 + hash = "sha256-8wX1s5mPCdMINIQP4m5q5StKqxY6CGBBxIxyQAvU7Pc="; 22 24 }; 23 25 24 26 nativeBuildInputs = [