mirror of
https://github.com/FliegendeWurst/nur-packages.git
synced 2024-11-21 16:34:58 +00:00
Compare commits
4 Commits
de07d6262e
...
a0afc2a463
Author | SHA1 | Date | |
---|---|---|---|
|
a0afc2a463 | ||
|
6ed2488820 | ||
|
b12a87bc83 | ||
|
b5c5a0936e |
@ -17,8 +17,10 @@
|
||||
diskgraph = pkgs.callPackage ./pkgs/diskgraph { };
|
||||
freqtop = pkgs.callPackage ./pkgs/freqtop { };
|
||||
map = pkgs.callPackage ./pkgs/map { };
|
||||
microsoft-ergonomic-keyboard = pkgs.callPackage ./pkgs/microsoft-ergonomic-keyboard {
|
||||
kernel = pkgs.linuxPackages.kernel;
|
||||
};
|
||||
openscad-snapshot = pkgs.callPackage ./pkgs/openscad-snapshot { };
|
||||
q = pkgs.callPackage ./pkgs/q { };
|
||||
# TODO: fix dependency specification
|
||||
#raspi-oled = pkgs.callPackage ./pkgs/raspi-oled { };
|
||||
raspi-oled-cross = pkgs.pkgsCross.muslpi.callPackage ./pkgs/raspi-oled { };
|
||||
|
31
pkgs/microsoft-ergonomic-keyboard/default.nix
Normal file
31
pkgs/microsoft-ergonomic-keyboard/default.nix
Normal file
@ -0,0 +1,31 @@
|
||||
{ stdenv, lib, fetchFromGitLab, kernel, kmod }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "microsoft-ergonomic-keyboard-${version}-${kernel.version}";
|
||||
version = "1.0";
|
||||
|
||||
src = fetchFromGitLab {
|
||||
owner = "arnekeller";
|
||||
repo = "microsoft-ergonomic-keyboard";
|
||||
rev = "f23be31228daa7ce62f019acb8f7a127e5bd846c";
|
||||
sha256 = "0knjkx4bqjxqsm2wly3dj96w1ljzhxavs26a3m65bb04phcb2n8w";
|
||||
};
|
||||
|
||||
hardeningDisable = [ "pic" "format" ];
|
||||
nativeBuildInputs = kernel.moduleBuildDependencies;
|
||||
|
||||
makeFlags = [
|
||||
"KERNELRELEASE=${kernel.modDirVersion}"
|
||||
"KERNEL_DIR=${kernel.dev}/lib/modules/${kernel.modDirVersion}/build"
|
||||
"INSTALL_MOD_PATH=$(out)"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "A kernel module to fix the office key on MS ergonomic keyboards";
|
||||
homepage = "https://gitlab.com/arnekeller/microsoft-ergonomic-keyboard";
|
||||
license = licenses.gpl2Only;
|
||||
maintainers = [ maintainers.fliegendewurst ];
|
||||
platforms = platforms.linux;
|
||||
};
|
||||
}
|
||||
|
@ -1,4 +1,4 @@
|
||||
{ lib, fetchurl, appimageTools, openscad, makeWrapper }:
|
||||
{ lib, fetchurl, appimageTools, openscad, makeWrapper, makeDesktopItem }:
|
||||
|
||||
let
|
||||
pname = "openscad";
|
||||
@ -7,6 +7,19 @@ let
|
||||
url = "https://files.openscad.org/snapshots/OpenSCAD-${version}-x86_64.AppImage";
|
||||
sha256 = "sha256-mEGmkL2lL7JxK0nRPLtnfg4vxtkK3URz351eyuRHZPE=";
|
||||
};
|
||||
|
||||
desktopItem = makeDesktopItem {
|
||||
name = "OpenSCAD";
|
||||
exec = "${pname}-${version} %f";
|
||||
comment = "The Programmers Solid 3D CAD Modeller (development snapshot)";
|
||||
icon = "openscad-nightly";
|
||||
desktopName = "OpenSCAD";
|
||||
genericName = "OpenSCAD";
|
||||
mimeTypes = [ "application/x-openscad" ];
|
||||
categories = [ "Graphics" "3DGraphics" "Engineering" ];
|
||||
keywords = [ "3d" "solid" "geometry" "csg" "model" "stl"];
|
||||
};
|
||||
|
||||
appimageContents = appimageTools.extractType2 { inherit pname version src; };
|
||||
in
|
||||
appimageTools.wrapType2 {
|
||||
@ -16,6 +29,9 @@ appimageTools.wrapType2 {
|
||||
source "${makeWrapper}/nix-support/setup-hook"
|
||||
wrapProgram $out/bin/${pname}-${version} \
|
||||
--unset QT_PLUGIN_PATH
|
||||
|
||||
mkdir -p $out/share
|
||||
cp -rt $out/share ${desktopItem}/share/applications ${appimageContents}/usr/share/icons
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
|
@ -1,28 +0,0 @@
|
||||
{ buildGo118Module, fetchFromGitHub, lib }:
|
||||
|
||||
buildGo118Module rec {
|
||||
pname = "q";
|
||||
version = "0.6.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "natesales";
|
||||
repo = "q";
|
||||
rev = "v${version}";
|
||||
sha256 = "1qvpw21b7w3awa37vy14xvw4ai3nwrq0qd7gnpl4vx4nd9m5f970";
|
||||
};
|
||||
|
||||
vendorSha256 = "1mv533hbs6bgfzrgnpbp3b1rijc7xdn93jnr8lksh8z7ddkw44wc";
|
||||
|
||||
ldflags = [
|
||||
"-X main.version=${version}"
|
||||
];
|
||||
|
||||
doCheck = false; # requires network access
|
||||
|
||||
meta = with lib; {
|
||||
description = "Tiny command line DNS client with support for UDP, TCP, DoT, DoH, DoQ and ODoH";
|
||||
homepage = "https://github.com/natesales/q";
|
||||
license = licenses.gpl3;
|
||||
maintainers = with maintainers; [ fliegendewurst ];
|
||||
};
|
||||
}
|
Loading…
Reference in New Issue
Block a user