From 3361da4c5650b74d5f90570ffd54b656a79979f4 Mon Sep 17 00:00:00 2001 From: Ingolf Wagner Date: Fri, 13 Mar 2020 12:01:10 +0800 Subject: [PATCH] add all licenses and navi package --- pkgs/navi/default.nix | 23 +++++++++++++++++++++++ system/desktop/packages.nix | 9 +++++++++ 2 files changed, 32 insertions(+) create mode 100644 pkgs/navi/default.nix diff --git a/pkgs/navi/default.nix b/pkgs/navi/default.nix new file mode 100644 index 0000000..79bb244 --- /dev/null +++ b/pkgs/navi/default.nix @@ -0,0 +1,23 @@ +{ stdenv, fetchFromGitHub, ... }: + +stdenv.mkDerivation rec { + version = "2.0.8"; + name = "navi-${version}"; + + src = fetchFromGitHub { + owner = "denisidoro"; + repo = "navi"; + rev = "v${version}"; + sha256 = "1kh4s7s595l95xirdb0fvgkdbig3zcfkdiqk8zdz9cfglzcm5192"; + }; + + buildInputs = [ ]; + + meta = with stdenv.lib; { + description = "An interactive cheatsheet tool for the command-line"; + homepage = "https://github.com/denisidoro/navi"; + license = licenses.asl20; + platforms = platforms.linux; + maintainers = with maintainers; [ mrVanDalo ]; + }; +} diff --git a/system/desktop/packages.nix b/system/desktop/packages.nix index d0b111f..e3c390e 100644 --- a/system/desktop/packages.nix +++ b/system/desktop/packages.nix @@ -12,6 +12,13 @@ let # seafile-shared = unstablePkgs.seafile-shared; #}; + allLicenses = let + licenses = builtins.map + (license: "echo '${license.shortName} : ${license.fullName}'") + (builtins.attrValues pkgs.stdenv.lib.licenses); + in pkgs.writers.writeBashBin "all-licenses" + (lib.concatStringsSep "\n" licenses); + seafileClient = pkgs.seafile-client.override { seafile-shared = pkgs.seafile-shared; }; @@ -309,6 +316,8 @@ in { "$@" '') + allLicenses + memo nixfmt dateutils