create a package to hold useful system scripts
This commit is contained in:
@@ -100,6 +100,8 @@
|
||||
#mobile-nixos.overlay
|
||||
nurpkgs.overlay
|
||||
(next: prev: {
|
||||
#### my own, non-upstreamable packages:
|
||||
sane-scripts = prev.callPackage ./pkgs/sane-scripts { };
|
||||
#### customized packages
|
||||
# nixos-unstable pleroma is too far out-of-date for our db
|
||||
pleroma = prev.callPackage ./pkgs/pleroma { };
|
||||
|
@@ -236,6 +236,7 @@ in
|
||||
pkgs.pulsemixer
|
||||
pkgs.python3
|
||||
pkgs.ripgrep
|
||||
pkgs.sane-scripts
|
||||
pkgs.smartmontools
|
||||
pkgs.snapper
|
||||
pkgs.socat
|
||||
|
23
pkgs/sane-scripts/default.nix
Normal file
23
pkgs/sane-scripts/default.nix
Normal 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;
|
||||
};
|
||||
}
|
2
pkgs/sane-scripts/src/bin/sane-test
Executable file
2
pkgs/sane-scripts/src/bin/sane-test
Executable file
@@ -0,0 +1,2 @@
|
||||
#!/usr/bin/env bash
|
||||
echo success
|
Reference in New Issue
Block a user