preserves-nim, xdg_open_ng: update to 20220625

This commit is contained in:
Emery Hemingway 2022-06-25 16:34:14 -05:00
parent 48d979dbe4
commit b7bf10234d
2 changed files with 12 additions and 14 deletions

View File

@ -1,12 +1,11 @@
{ lib, stdenv, buildNimPackage, fetchFromGitea, fetchFromGitHub, preserves }:
{ lib, stdenv, buildNimPackage, fetchFromGitea, fetchFromGitHub, runCommand
, nim-unwrapped, preserves }:
let
compiler = fetchFromGitHub {
owner = "nim-lang";
repo = "nim";
rev = "v1.6.0";
hash = "sha256-C9oveXIufv0HqMQw6eNmLbku4Sd7r28PKcRILvKYzn0=";
};
compiler = runCommand "compiler.nimble" { inherit (nim-unwrapped) src; } ''
mkdir -p $out
tar xf $src --strip-components=1 -C $out
'';
npeg = fetchFromGitHub {
owner = "zevv";
@ -17,13 +16,13 @@ let
in buildNimPackage rec {
pname = "preserves";
version = "3.3.1";
version = "20220625";
src = fetchFromGitea {
domain = "git.syndicate-lang.org";
owner = "ehmry";
repo = "${pname}-nim";
rev = "nim-${pname}-${version}";
sha256 = "sha256-xliHep/00EYWK9Y7bxhW6I/at3pbSJX7BCtngVo9UtY=";
rev = version;
sha256 = "sha256-ZNgBlIOKyWD0R5wZvGb/0K5tUpz5q5QpET4Qa/kxhkA=";
};
propagatedBuildInputs = [ compiler npeg ];

View File

@ -2,15 +2,15 @@
buildNimPackage rec {
pname = "xdg_open_ng";
version = "0.4.0";
version = "20220625";
nimBinOnly = true;
src = fetchFromGitea {
domain = "git.syndicate-lang.org";
owner = "ehmry";
repo = pname;
rev = "${pname}-${version}";
hash = "sha256-8Ox6ypxbn3X+Yj0VIaHF5JLvoTknPoYf/xYIMwyyfWg=";
rev = version;
hash = "sha256-yOuR4KYAMxlRc4AIr3ud0HzidHDQPeIiN3dzlnphLug=";
};
propagatedBuildInputs = [ syndicate ];
@ -20,7 +20,6 @@ buildNimPackage rec {
desktopName = "Syndicate URI dispatcher (xdg-open)";
exec = "${name} %U";
mimeTypes = [
"all/all"
"application/xhtml+xml"
"text/html"
"text/xml"