summaryrefslogtreecommitdiffstats
path: root/pkgs-temp
diff options
context:
space:
mode:
authorCole Mickens <cole.mickens@gmail.com>2019-01-29 14:26:22 -0800
committerCole Mickens <cole.mickens@gmail.com>2019-01-29 14:26:26 -0800
commit2cc97280cea8637a7beeaecc290ab12577d59a1e (patch)
tree64c0007a45d08e44926686c84d8f2a1515c04287 /pkgs-temp
parent79796988e54bdd73185b79cf8eacf6d58a93140f (diff)
update: grim, sway{-beta,idle,lock}, waybar, wayfire, wlroots, wmfocus
note: wl-clipboard was intentionally held back due to build failures Signed-off-by: Cole Mickens <cole.mickens@gmail.com>
Diffstat (limited to 'pkgs-temp')
-rw-r--r--pkgs-temp/scdoc/default.nix34
1 files changed, 34 insertions, 0 deletions
diff --git a/pkgs-temp/scdoc/default.nix b/pkgs-temp/scdoc/default.nix
new file mode 100644
index 0000000..b0160e8
--- /dev/null
+++ b/pkgs-temp/scdoc/default.nix
@@ -0,0 +1,34 @@
+{ stdenv, fetchurl }:
+
+stdenv.mkDerivation rec {
+ name = "scdoc-${version}";
+ version = "1.8.0";
+
+ src = fetchurl {
+ url = "https://git.sr.ht/~sircmpwn/scdoc/archive/${version}.tar.gz";
+ sha256 = "11693c01bn2cxmxra9r3nkacl908na4k42h2j4dv5j7zc8081994";
+ };
+
+ postPatch = ''
+ substituteInPlace Makefile \
+ --replace "-static" "" \
+ --replace "/usr/local" "$out"
+ # It happens from time to time that the version wasn't updated:
+ sed -iE 's/VERSION=[0-9]\.[0-9]\.[0-9]/VERSION=${version}/' Makefile
+ '';
+
+ doCheck = true;
+
+ meta = with stdenv.lib; {
+ description = "A simple man page generator";
+ longDescription = ''
+ scdoc is a simple man page generator written for POSIX systems written in
+ C99.
+ '';
+ homepage = https://git.sr.ht/~sircmpwn/scdoc;
+ license = licenses.mit;
+ platforms = platforms.unix;
+ maintainers = with maintainers; [ primeos ];
+ };
+}
+