From 87f08c462a0e653f9a754fcd1f84582da1bf11c3 Mon Sep 17 00:00:00 2001 From: Trolli Schmittlauch Date: Wed, 18 Feb 2026 18:36:47 +0100 Subject: [PATCH] fc-scripts: init at 20260202 collection of useful scripts from the FlyingCircus crew --- home/modules/packages.nix | 1 + packages/fc-scripts.nix | 27 +++++++++++++++++++++++++++ 2 files changed, 28 insertions(+) create mode 100644 packages/fc-scripts.nix diff --git a/home/modules/packages.nix b/home/modules/packages.nix index 462f6c6..3c9583d 100644 --- a/home/modules/packages.nix +++ b/home/modules/packages.nix @@ -85,6 +85,7 @@ let nix-output-monitor # putting this here as a plain `nix` alternative + fc-scripts # this might turn out to be useful even in non-work environments? ] ++ lib.optionals pkgs.stdenv.isLinux [ xclip diff --git a/packages/fc-scripts.nix b/packages/fc-scripts.nix new file mode 100644 index 0000000..f8725ed --- /dev/null +++ b/packages/fc-scripts.nix @@ -0,0 +1,27 @@ +{ + fetchFromGitHub, + runCommand, + python3, + stdenvNoCC, +}: +stdenvNoCC.mkDerivation { + pname = "fc-scripts"; + version = "20260202"; + src = fetchFromGitHub { + owner = "flyingcircusio"; + repo = "scripts"; + rev = "887f066006829fc3ee44b3cfbe748c578ea2e7c1"; + hash = "sha256-mrL/dULb0NKw8cH9ferzfDdRjhWANrWQg/u7FNCtzWw="; + }; + + buildInputs = [ python3 ]; + dontBuild = true; + installPhase = '' + runHook preInstall + + mkdir -p $out/bin + cp *.py $out/bin/ + + runHook postInstall + ''; +}