commit
c480cc2895
@ -0,0 +1,52 @@ |
||||
{ config, pkgs, lib, ... }: |
||||
|
||||
with lib; |
||||
|
||||
{ |
||||
# interface |
||||
options.programs.k3b = { |
||||
enable = mkOption { |
||||
type = types.bool; |
||||
default = false; |
||||
description = '' |
||||
Whether to enable k3b, the KDE disk burning application. |
||||
|
||||
Additionally to installing <package>k3b</package> enabling this will |
||||
add <literal>setuid</literal> wrappers in <literal>/run/wrappers/bin</literal> |
||||
for both <package>cdrdao</package> and <package>cdrecord</package>. On first |
||||
run you must manually configure the path of <package>cdrdae</package> and |
||||
<package>cdrecord</package> to correspond to the appropriate paths under |
||||
<literal>/run/wrappers/bin</literal> in the "Setup External Programs" menu. |
||||
''; |
||||
}; |
||||
}; |
||||
|
||||
# implementation |
||||
config = mkIf config.programs.k3b.enable { |
||||
|
||||
environment.systemPackages = with pkgs; [ |
||||
k3b |
||||
dvdplusrwtools |
||||
cdrdao |
||||
cdrkit |
||||
]; |
||||
|
||||
security.wrappers = { |
||||
cdrdao = { |
||||
setuid = true; |
||||
owner = "root"; |
||||
group = "cdrom"; |
||||
permissions = "u+wrx,g+x"; |
||||
source = "${pkgs.cdrdao}/bin/cdrdao"; |
||||
}; |
||||
cdrecord = { |
||||
setuid = true; |
||||
owner = "root"; |
||||
group = "cdrom"; |
||||
permissions = "u+wrx,g+x"; |
||||
source = "${pkgs.cdrkit}/bin/cdrecord"; |
||||
}; |
||||
}; |
||||
|
||||
}; |
||||
} |
@ -0,0 +1,63 @@ |
||||
{ config, lib, pkgs, ... }: |
||||
|
||||
let |
||||
inherit (lib) escapeShellArgs mkEnableOption mkIf mkOption types; |
||||
|
||||
cfg = config.services.mimir; |
||||
|
||||
settingsFormat = pkgs.formats.yaml {}; |
||||
in { |
||||
options.services.mimir = { |
||||
enable = mkEnableOption "mimir"; |
||||
|
||||
configuration = mkOption { |
||||
type = (pkgs.formats.json {}).type; |
||||
default = {}; |
||||
description = '' |
||||
Specify the configuration for Mimir in Nix. |
||||
''; |
||||
}; |
||||
|
||||
configFile = mkOption { |
||||
type = types.nullOr types.path; |
||||
default = null; |
||||
description = '' |
||||
Specify a configuration file that Mimir should use. |
||||
''; |
||||
}; |
||||
}; |
||||
|
||||
config = mkIf cfg.enable { |
||||
assertions = [{ |
||||
assertion = ( |
||||
(cfg.configuration == {} -> cfg.configFile != null) && |
||||
(cfg.configFile != null -> cfg.configuration == {}) |
||||
); |
||||
message = '' |
||||
Please specify either |
||||
'services.mimir.configuration' or |
||||
'services.mimir.configFile'. |
||||
''; |
||||
}]; |
||||
|
||||
systemd.services.mimir = { |
||||
description = "mimir Service Daemon"; |
||||
wantedBy = [ "multi-user.target" ]; |
||||
|
||||
serviceConfig = let |
||||
conf = if cfg.configFile == null |
||||
then settingsFormat.generate "config.yaml" cfg.configuration |
||||
else cfg.configFile; |
||||
in |
||||
{ |
||||
ExecStart = "${pkgs.grafana-mimir}/bin/mimir --config.file=${conf}"; |
||||
DynamicUser = true; |
||||
Restart = "always"; |
||||
ProtectSystem = "full"; |
||||
DevicePolicy = "closed"; |
||||
NoNewPrivileges = true; |
||||
StateDirectory = "mimir"; |
||||
}; |
||||
}; |
||||
}; |
||||
} |
@ -0,0 +1,36 @@ |
||||
{ config, pkgs, lib, ... }: |
||||
|
||||
{ |
||||
config = lib.mkIf (config.boot.initrd.enable && config.boot.initrd.systemd.enable) { |
||||
# Copy secrets into the initrd if they cannot be appended |
||||
boot.initrd.systemd.contents = lib.mkIf (!config.boot.loader.supportsInitrdSecrets) |
||||
(lib.mapAttrs' (dest: source: lib.nameValuePair "/.initrd-secrets/${dest}" { source = if source == null then dest else source; }) config.boot.initrd.secrets); |
||||
|
||||
# Copy secrets to their respective locations |
||||
boot.initrd.systemd.services.initrd-nixos-copy-secrets = lib.mkIf (config.boot.initrd.secrets != {}) { |
||||
description = "Copy secrets into place"; |
||||
# Run as early as possible |
||||
wantedBy = [ "sysinit.target" ]; |
||||
before = [ "cryptsetup-pre.target" ]; |
||||
unitConfig.DefaultDependencies = false; |
||||
|
||||
# We write the secrets to /.initrd-secrets and move them because this allows |
||||
# secrets to be written to /run. If we put the secret directly to /run and |
||||
# drop this service, we'd mount the /run tmpfs over the secret, making it |
||||
# invisible in stage 2. |
||||
script = '' |
||||
for secret in $(cd /.initrd-secrets; find . -type f); do |
||||
mkdir -p "$(dirname "/$secret")" |
||||
cp "/.initrd-secrets/$secret" "/$secret" |
||||
done |
||||
''; |
||||
|
||||
unitConfig = { |
||||
Type = "oneshot"; |
||||
RemainAfterExit = true; |
||||
}; |
||||
}; |
||||
# The script needs this |
||||
boot.initrd.systemd.extraBin.find = "${pkgs.findutils}/bin/find"; |
||||
}; |
||||
} |
@ -0,0 +1,33 @@ |
||||
{ system ? builtins.currentSystem |
||||
, config ? {} |
||||
, pkgs ? import ../.. { inherit system config; } |
||||
}: |
||||
|
||||
{ |
||||
# Some of these tests don't work with systemd stage 1 yet. Uncomment |
||||
# them when fixed. |
||||
inherit (import ./installer.nix { inherit system config pkgs; systemdStage1 = true; }) |
||||
# bcache |
||||
# btrfsSimple |
||||
# btrfsSubvolDefault |
||||
# btrfsSubvols |
||||
# encryptedFSWithKeyfile |
||||
# grub1 |
||||
# luksroot |
||||
# luksroot-format1 |
||||
# luksroot-format2 |
||||
# lvm |
||||
separateBoot |
||||
separateBootFat |
||||
simple |
||||
simpleLabels |
||||
simpleProvided |
||||
simpleSpecialised |
||||
simpleUefiGrub |
||||
simpleUefiGrubSpecialisation |
||||
simpleUefiSystemdBoot |
||||
# swraid |
||||
# zfsroot |
||||
; |
||||
|
||||
} |
@ -0,0 +1,53 @@ |
||||
{ stdenv, lib, fetchFromGitLab, cmake, pkg-config, cairo, libxkbcommon |
||||
, xcbutilcursor, xcbutilkeysyms, xcbutil, libXrandr, libXinerama, libXcursor |
||||
, alsa-lib, libjack2, lv2, gcc-unwrapped, curl}: |
||||
|
||||
stdenv.mkDerivation rec { |
||||
pname = "LibreArp"; |
||||
version = "2.2"; |
||||
|
||||
src = fetchFromGitLab { |
||||
owner = "LibreArp"; |
||||
repo = "LibreArp"; |
||||
rev = version; |
||||
hash = "sha256-jCUT/sflO9L57xRTqNR90RbwJ0uZ+xJVXnB3n+FhWBo="; |
||||
fetchSubmodules = true; |
||||
}; |
||||
|
||||
nativeBuildInputs = [ cmake pkg-config ]; |
||||
buildInputs = [ |
||||
cairo |
||||
libxkbcommon |
||||
xcbutilcursor |
||||
xcbutilkeysyms |
||||
xcbutil |
||||
libXrandr |
||||
libXinerama |
||||
libXcursor |
||||
alsa-lib |
||||
libjack2 |
||||
lv2 |
||||
curl |
||||
]; |
||||
|
||||
cmakeFlags = [ |
||||
"-DCMAKE_AR=${gcc-unwrapped}/bin/gcc-ar" |
||||
"-DCMAKE_RANLIB=${gcc-unwrapped}/bin/gcc-ranlib" |
||||
"-DCMAKE_NM=${gcc-unwrapped}/bin/gcc-nm" |
||||
]; |
||||
|
||||
installPhase = '' |
||||
mkdir -p $out/lib/vst3 |
||||
cd LibreArp_artefacts/Release |
||||
cp -r VST3/LibreArp.vst3 $out/lib/vst3 |
||||
''; |
||||
|
||||
meta = with lib; { |
||||
description = |
||||
"A pattern-based arpeggio generator plugin."; |
||||
homepage = "https://librearp.gitlab.io/"; |
||||
license = licenses.gpl3Plus; |
||||
platforms = [ "x86_64-linux" ]; |
||||
maintainers = with maintainers; [ magnetophon ]; |
||||
}; |
||||
} |
@ -0,0 +1,53 @@ |
||||
{ stdenv, lib, fetchFromGitLab, cmake, pkg-config, cairo, libxkbcommon |
||||
, xcbutilcursor, xcbutilkeysyms, xcbutil, libXrandr, libXinerama, libXcursor |
||||
, alsa-lib, libjack2, lv2, gcc-unwrapped, curl}: |
||||
|
||||
stdenv.mkDerivation rec { |
||||
pname = "LibreArp-lv2"; |
||||
version = "2.2"; |
||||
|
||||
src = fetchFromGitLab { |
||||
owner = "LibreArp"; |
||||
repo = "LibreArp"; |
||||
rev = "${version}-lv2"; |
||||
hash = "sha256-j5SksuhC4ZXXILfOpwXNqIu5fO07a/6tiZ5qUo+p0Ug="; |
||||
fetchSubmodules = true; |
||||
}; |
||||
|
||||
nativeBuildInputs = [ cmake pkg-config ]; |
||||
buildInputs = [ |
||||
cairo |
||||
libxkbcommon |
||||
xcbutilcursor |
||||
xcbutilkeysyms |
||||
xcbutil |
||||
libXrandr |
||||
libXinerama |
||||
libXcursor |
||||
alsa-lib |
||||
libjack2 |
||||
lv2 |
||||
curl |
||||
]; |
||||
|
||||
cmakeFlags = [ |
||||
"-DCMAKE_AR=${gcc-unwrapped}/bin/gcc-ar" |
||||
"-DCMAKE_RANLIB=${gcc-unwrapped}/bin/gcc-ranlib" |
||||
"-DCMAKE_NM=${gcc-unwrapped}/bin/gcc-nm" |
||||
]; |
||||
|
||||
installPhase = '' |
||||
mkdir -p $out/lib/lv2 |
||||
cd LibreArp_artefacts/Release |
||||
cp -r LV2/LibreArp.lv2 $out/lib/lv2 |
||||
''; |
||||
|
||||
meta = with lib; { |
||||
description = |
||||
"A pattern-based arpeggio generator plugin."; |
||||
homepage = "https://librearp.gitlab.io/"; |
||||
license = licenses.gpl3Plus; |
||||
platforms = [ "x86_64-linux" ]; |
||||
maintainers = with maintainers; [ magnetophon ]; |
||||
}; |
||||
} |
@ -0,0 +1,50 @@ |
||||
{ lib |
||||
, mkDerivation |
||||
, fetchFromGitHub |
||||
, pkg-config |
||||
, qtbase |
||||
, qtsvg |
||||
, qtcharts |
||||
, wrapQtAppsHook |
||||
, cmake |
||||
, python3 |
||||
}: |
||||
|
||||
mkDerivation rec { |
||||
pname = "ripes"; |
||||
version = "2.2.4"; |
||||
|
||||
src = fetchFromGitHub { |
||||
owner = "mortbopet"; |
||||
repo = "Ripes"; |
||||
rev = "v${version}"; |
||||
fetchSubmodules = true; |
||||
sha256 = "sha256-Aal2A4xypzaY7Oa+boIrXk7ITNKnh5OZIP7DkJjcGu4="; |
||||
}; |
||||
|
||||
nativeBuildInputs = [ |
||||
cmake |
||||
pkg-config |
||||
python3 |
||||
wrapQtAppsHook |
||||
]; |
||||
|
||||
buildInputs = [ |
||||
qtbase |
||||
qtsvg |
||||
qtcharts |
||||
]; |
||||
|
||||
installPhase = '' |
||||
install -D Ripes $out/bin/Ripes |
||||
cp -r ${src}/appdir/usr/share $out/share |
||||
''; |
||||
|
||||
meta = with lib; { |
||||
description = "A graphical processor simulator and assembly editor for the RISC-V ISA"; |
||||
homepage = "https://github.com/mortbopet/Ripes"; |
||||
license = licenses.mit; |
||||
platforms = platforms.linux; |
||||
maintainers = with maintainers; [ rewine ]; |
||||
}; |
||||
} |
@ -1,35 +0,0 @@ |
||||
{ lib, stdenv, fetchFromGitHub, pkg-config |
||||
, libX11, libxcb, cairo, gtk2, pango, python27, python3 |
||||
}: |
||||
|
||||
stdenv.mkDerivation rec { |
||||
pname = "lighthouse"; |
||||
version = "unstable-2016-07-20"; |
||||
|
||||
src = fetchFromGitHub { |
||||
owner = "emgram769"; |
||||
repo = "lighthouse"; |
||||
rev = "d1813ef8e2aca9f6b3609b1e0c6d1d5ee683281a"; |
||||
sha256 = "0v6ylm49f1b44zwq1y1gqxp2csyqblplr24ajllc2q3r0sc9m1ys"; |
||||
}; |
||||
|
||||
nativeBuildInputs = [ pkg-config ]; |
||||
buildInputs = [ |
||||
libX11 libxcb cairo gtk2 pango python27 python3 |
||||
]; |
||||
|
||||
makeFlags = [ "PREFIX=\${out}" ]; |
||||
|
||||
preFixup = "chmod +x $out/share/lighthouse/.config/lighthouse/google.py"; |
||||
|
||||
postFixup = "chmod -x $out/share/lighthouse/.config/lighthouse/google.py"; |
||||
|
||||
meta = with lib; { |
||||
description = "A simple flexible popup dialog to run on X"; |
||||
homepage = "https://github.com/emgram769/lighthouse"; |
||||
license = licenses.mit; |
||||
maintainers = with maintainers; [ ramkromberg ]; |
||||
platforms = platforms.linux; |
||||
}; |
||||
|
||||
} |
@ -1,6 +1,6 @@ |
||||
{ |
||||
"version": "1.10.10", |
||||
"desktopSrcHash": "Atgcu+K28pScYokS/lTu+/mMeEC+1yTcn3Akq+KZJNY=", |
||||
"version": "1.10.11", |
||||
"desktopSrcHash": "n74KFmHI6ZQWBEJCR55VZHS//myh2RePcJRVOmZ6XHo=", |
||||
"desktopYarnHash": "0jm0i1yyfkg1ll11pb3qif1vdxx6rp0yl9kd8jg9nhsg2jzw66pr", |
||||
"webHash": "1xp0rhw3k2znwvqqikhd771l2n6xyx8npcz87m9d4cisl82lpnr0" |
||||
"webHash": "02m64bhg1ls4a5igmizkkxnqfmbfhs0xy24ycr75vxmn0zmwa3yd" |
||||
} |
||||
|
@ -0,0 +1,23 @@ |
||||
{ lib, stdenv, fetchFromGitHub }: |
||||
|
||||
stdenv.mkDerivation rec { |
||||
pname = "adolc"; |
||||
version = "2.7.2"; |
||||
|
||||
src = fetchFromGitHub { |
||||
owner = "coin-or"; |
||||
repo = "ADOL-C"; |
||||
sha256 = "1w0x0p32r1amfmh2lyx33j4cb5bpkwjr5z0ll43zi5wf5gsvckd1"; |
||||
rev = "releases/${version}"; |
||||
}; |
||||
|
||||
configureFlags = [ "--with-openmp-flag=-fopenmp" ]; |
||||
|
||||
meta = with lib; { |
||||
description = "Automatic Differentiation of C/C++"; |
||||
homepage = "https://github.com/coin-or/ADOL-C"; |
||||
maintainers = [ maintainers.bzizou ]; |
||||
license = licenses.gpl2Plus; |
||||
}; |
||||
} |
||||
|
@ -0,0 +1,17 @@ |
||||
#!/usr/bin/env nix-shell |
||||
#!nix-shell --pure -i bash -p cacert bundix |
||||
|
||||
# Do these steps before running this script: |
||||
# 1. Copy Gemfile from new Redmine version to this folder |
||||
# 2. Manually modify the database lines in Gemfile (diff the two files, it's obvious) |
||||
|
||||
pkg_dir="$(dirname "$0")" |
||||
cd ${pkg_dir} |
||||
|
||||
for file in "gemset.nix" "Gemfile.lock"; do |
||||
if [ -f ${file} ]; then |
||||
rm ${file} |
||||
fi |
||||
done |
||||
|
||||
bundix -l |
@ -0,0 +1,50 @@ |
||||
{ avahi-compat, cmake, fetchFromGitHub, flatbuffers, hidapi, lib, libcec |
||||
, libusb1, libX11, libxcb, libXrandr, mbedtls, mkDerivation, protobuf, python3 |
||||
, qtbase, qtserialport, qtsvg, qtx11extras, wrapQtAppsHook }: |
||||
|
||||
mkDerivation rec { |
||||
pname = "hyperion.ng"; |
||||
version = "2.0.12"; |
||||
|
||||
src = fetchFromGitHub { |
||||
owner = "hyperion-project"; |
||||
repo = pname; |
||||
rev = version; |
||||
sha256 = "sha256-J31QaWwGNhIpnZmWN9lZEI6fC0VheY5X8fGchQqtAlQ="; |
||||
}; |
||||
|
||||
buildInputs = [ |
||||
avahi-compat |
||||
flatbuffers |
||||
hidapi |
||||
libcec |
||||
libusb1 |
||||
libX11 |
||||
libxcb |
||||
libXrandr |
||||
mbedtls |
||||
protobuf |
||||
python3 |
||||
qtbase |
||||
qtserialport |
||||
qtsvg |
||||
qtx11extras |
||||
]; |
||||
|
||||
nativeBuildInputs = [ cmake wrapQtAppsHook ]; |
||||
|
||||
cmakeFlags = [ |
||||
"-DCMAKE_BUILD_TYPE=Release" |
||||
"-DUSE_SYSTEM_MBEDTLS_LIBS=ON" |
||||
"-DUSE_SYSTEM_FLATBUFFERS_LIBS=ON" |
||||
"-DUSE_SYSTEM_PROTO_LIBS=ON" |
||||
]; |
||||
|
||||
meta = with lib; { |
||||
description = "Open Source Ambilight solution"; |
||||
homepage = "https://github.com/hyperion-project/hyperion.ng"; |
||||
license = licenses.mit; |
||||
maintainers = with maintainers; [ algram ]; |
||||
platforms = platforms.unix; |
||||
}; |
||||
} |
@ -0,0 +1,29 @@ |
||||
{ lib, fetchzip }: |
||||
|
||||
let |
||||
version = "1.204"; |
||||
in |
||||
fetchzip rec { |
||||
name = "annapurna-sil-${version}"; |
||||
|
||||
url = "https://software.sil.org/downloads/r/annapurna/AnnapurnaSIL-${version}.zip"; |
||||
|
||||
postFetch = '' |
||||
mkdir -p $out/share/{doc,fonts} |
||||
unzip -j $downloadedFile \*.ttf -d $out/share/fonts/truetype |
||||
unzip -j $downloadedFile \*OFL.txt \*OFL-FAQ.txt \*README.txt \*FONTLOG.txt -d "$out/share/doc/${name}" |
||||
''; |
||||
|
||||
sha256 = "sha256-kVeP9ZX8H+Wn6jzmH1UQvUKY6vJjadMTdEusS7LodFM="; |
||||
|
||||
meta = with lib; { |
||||
homepage = "https://software.sil.org/annapurna"; |
||||
description = "Unicode-based font family with broad support for writing systems that use the Devanagari script"; |
||||
longDescription = '' |
||||
Annapurna SIL is a Unicode-based font family with broad support for writing systems that use the Devanagari script. Inspired by traditional calligraphic forms, the design is intended to be highly readable, reasonably compact, and visually attractive. |
||||
''; |
||||
license = licenses.ofl; |
||||
platforms = platforms.all; |
||||
maintainers = [ maintainers.kmein ]; |
||||
}; |
||||
} |
@ -0,0 +1,26 @@ |
||||
{ lib, fetchzip }: |
||||
|
||||
let |
||||
version = "2.51"; |
||||
in |
||||
fetchzip rec { |
||||
name = "ezra-sil-${version}"; |
||||
|
||||
url = "https://software.sil.org/downloads/r/ezra/EzraSIL-${version}.zip"; |
||||
|
||||
postFetch = '' |
||||
mkdir -p $out/share/{doc,fonts} |
||||
unzip -j $downloadedFile \*.ttf -d $out/share/fonts/truetype |
||||
unzip -j $downloadedFile \*OFL-FAQ.txt \*README.txt \*FONTLOG.txt -d "$out/share/doc/${name}" |
||||
''; |
||||
|
||||
sha256 = "sha256-1LGw/RPFeNtEvcBWFWZf8+dABvWye2RfZ/jt8rwQewM="; |
||||
|
||||
meta = with lib; { |
||||
homepage = "https://software.sil.org/ezra"; |
||||
description = "Typeface fashioned after the square letter forms of the typography of the Biblia Hebraica Stuttgartensia (BHS)"; |
||||
license = licenses.ofl; |
||||
platforms = platforms.all; |
||||
maintainers = [ maintainers.kmein ]; |
||||
}; |
||||
} |
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in new issue