From 9b2b49e9063d805e68acbef40989075f1b1a6576 Mon Sep 17 00:00:00 2001 From: Ben Sima Date: Fri, 22 Feb 2019 15:22:49 -0800 Subject: Package and deploy fathom --- pack/default.nix | 6 ++++++ pack/fathom.nix | 18 ++++++++++++++++++ 2 files changed, 24 insertions(+) create mode 100644 pack/default.nix create mode 100644 pack/fathom.nix (limited to 'pack') diff --git a/pack/default.nix b/pack/default.nix new file mode 100644 index 0000000..6c218bb --- /dev/null +++ b/pack/default.nix @@ -0,0 +1,6 @@ +self: super: + +{ + fathom = import ./fathom.nix { nixpkgs = super; }; + ibb = import ../ibb/default.nix { }; +} diff --git a/pack/fathom.nix b/pack/fathom.nix new file mode 100644 index 0000000..a845eb6 --- /dev/null +++ b/pack/fathom.nix @@ -0,0 +1,18 @@ +{ nixpkgs }: +with nixpkgs; +stdenv.mkDerivation rec { + name = "fathom-v${version}"; + version = "1.2.1"; + src = builtins.fetchurl { + url = "https://github.com/usefathom/fathom/releases/download/v${version}/fathom_${version}_linux_amd64.tar.gz"; + sha256 = "0sfpxh2xrvz992k0ynib57zzpcr0ikga60552i14m13wppw836nh"; + }; + sourceRoot = "."; + dontBuild = true; + installPhase = '' + mkdir -p $out/bin + cp fathom $out/bin + cp LICENSE $out + cp README.md $out + ''; +} -- cgit v1.2.3