create a package to hold useful system scripts

This commit is contained in:
2022-06-11 17:40:15 -07:00
parent 02b5436573
commit c11f565226
4 changed files with 28 additions and 0 deletions

View File

@@ -100,6 +100,8 @@
#mobile-nixos.overlay #mobile-nixos.overlay
nurpkgs.overlay nurpkgs.overlay
(next: prev: { (next: prev: {
#### my own, non-upstreamable packages:
sane-scripts = prev.callPackage ./pkgs/sane-scripts { };
#### customized packages #### customized packages
# nixos-unstable pleroma is too far out-of-date for our db # nixos-unstable pleroma is too far out-of-date for our db
pleroma = prev.callPackage ./pkgs/pleroma { }; pleroma = prev.callPackage ./pkgs/pleroma { };

View File

@@ -236,6 +236,7 @@ in
pkgs.pulsemixer pkgs.pulsemixer
pkgs.python3 pkgs.python3
pkgs.ripgrep pkgs.ripgrep
pkgs.sane-scripts
pkgs.smartmontools pkgs.smartmontools
pkgs.snapper pkgs.snapper
pkgs.socat pkgs.socat

View File

@@ -0,0 +1,23 @@
{ lib
, stdenv
}:
stdenv.mkDerivation {
name = "sane-scripts";
src = ./src;
# See: https://nixos.org/nixpkgs/manual/#ssec-stdenv-dependencies
buildInputs = [ ];
installPhase = ''
mkdir -p "$out"
cp -R * "$out"/
'';
meta = {
description = "collection of scripts associated with uninsane systems";
homepage = "https://git.uninsane.org";
platforms = lib.platforms.all;
};
}

View File

@@ -0,0 +1,2 @@
#!/usr/bin/env bash
echo success