From 15f4249f9b9ccc64542fa097f232ccf8cd593ec4 Mon Sep 17 00:00:00 2001 From: Sky Hearn Date: Fri, 1 Mar 2024 00:22:24 -0800 Subject: [PATCH] 68 current 2024-03-01 00:22:19 23.11.4801.b7ee09cf5614 6.1.79 * Signed-off-by: Sky Hearn --- configuration.nix | 1 + rolldice/default.nix | 28 ++++++++++++++++++++++++++++ 2 files changed, 29 insertions(+) create mode 100644 rolldice/default.nix diff --git a/configuration.nix b/configuration.nix index 78a9955..51aa1c2 100644 --- a/configuration.nix +++ b/configuration.nix @@ -89,6 +89,7 @@ nitrogen --restore & home-manager.users.sky = {pkgs, ...}: { home.packages = with pkgs; [ #obsidian + (callPackage (./rolldice/default.nix) {}) zim moonlight-embedded nitrogen diff --git a/rolldice/default.nix b/rolldice/default.nix new file mode 100644 index 0000000..7f34367 --- /dev/null +++ b/rolldice/default.nix @@ -0,0 +1,28 @@ +{ lib +, stdenv +, fetchzip +, readline +}: + +stdenv.mkDerivation rec { + name = "rolldice"; + version = "1.16-1"; + + src = fetchzip { + url = "https://launchpad.net/ubuntu/+archive/primary/+sourcefiles/rolldice/1.16-1build1/rolldice_1.16.orig.tar.gz"; + sha256 = "sha256-gyBwPzO0UO6LvGvaWk5bn1uFUPtedC3Y1/uN3FdyJSQ="; + }; + + buildInputs = [ + readline + ]; + + buildPhase = '' + make + ''; + + installPhase = '' + mkdir -p $out/bin + mv rolldice $out/bin + ''; +}