Compare commits
4 Commits
af24a4ea4c
...
7e488f71f8
Author | SHA1 | Date | |
---|---|---|---|
7e488f71f8 | |||
dd3dca74c0 | |||
742455838e | |||
ac7a789e5e |
@ -3,6 +3,8 @@
|
||||
# in all available configurations--Nix introspection is a bit complicated,
|
||||
# so they're listed explicitly.
|
||||
|
||||
# In case of stale checkouts: rm -rf ~/.cache/nix
|
||||
|
||||
build() {
|
||||
echo "$(tput bold)-- Building $*$(tput sgr0)"
|
||||
nix-build --arg local ${LOCAL:-false} "$@"
|
||||
|
@ -43,13 +43,9 @@ pkgs.stdenv.mkDerivation rec {
|
||||
ref = "master";
|
||||
};
|
||||
|
||||
# It's a weird mess, gdm.pc.in includes the subdirectory in includedir.
|
||||
patchPhase = ''
|
||||
sed -i 's|gdm-user-switching.h>|gdm/&|' gdm-switch-user.c
|
||||
'';
|
||||
|
||||
cmakeFlags = [
|
||||
"-DSYSTEMD_UNITDIR=${placeholder "out"}/lib/systemd/system"
|
||||
"-DSETUID="
|
||||
];
|
||||
|
||||
doCheck = true;
|
||||
|
@ -13,7 +13,7 @@ pkgs.stdenv.mkDerivation rec {
|
||||
];
|
||||
|
||||
buildInputs = with pkgs; [
|
||||
libusb
|
||||
libusb1
|
||||
] ++ lib.optionals full [
|
||||
gtk3
|
||||
|
||||
|
@ -3,7 +3,7 @@
|
||||
, full ? true
|
||||
}:
|
||||
pkgs.stdenv.mkDerivation rec {
|
||||
pname = "razer-bw-te-ctl";
|
||||
pname = "usb-drivers";
|
||||
version = "master";
|
||||
|
||||
nativeBuildInputs = with pkgs; [
|
||||
@ -13,7 +13,8 @@ pkgs.stdenv.mkDerivation rec {
|
||||
];
|
||||
|
||||
buildInputs = with pkgs; [
|
||||
libusb
|
||||
libusb1
|
||||
hidapi
|
||||
];
|
||||
|
||||
src = if local then
|
||||
@ -28,10 +29,14 @@ pkgs.stdenv.mkDerivation rec {
|
||||
ref = "master";
|
||||
};
|
||||
|
||||
cmakeFlags = [
|
||||
"-DSETUID="
|
||||
];
|
||||
|
||||
doCheck = true;
|
||||
|
||||
meta = with pkgs.lib; {
|
||||
description = "Razer BlackWidow Tournament Edition control utility";
|
||||
description = "User space USB drivers";
|
||||
homepage = "https://git.janouch.name/p/${pname}";
|
||||
platforms = platforms.all;
|
||||
license = licenses.bsd0;
|
@ -63,7 +63,7 @@ pkgs.stdenv.mkDerivation rec {
|
||||
|
||||
modRoot = "./${_pname}/";
|
||||
# vendorHash = pkgs.lib.fakeHash;
|
||||
vendorHash = "sha256-TK3rivjzYZwG8bfia22iQO5ZKnBzeIidsHNl6jnQUio=";
|
||||
vendorHash = "sha256-feaUOP+joGnpjqniCtstRGHwcMyGNZ95PwEXWzjmjIk=";
|
||||
|
||||
mithril = pkgs.fetchurl {
|
||||
url = "https://unpkg.com/mithril@2.2.3/mithril.js";
|
||||
@ -129,6 +129,8 @@ pkgs.stdenv.mkDerivation rec {
|
||||
'';
|
||||
};
|
||||
|
||||
# Ignoring xA, as it is huge, and already checked through CI.
|
||||
|
||||
# While we can't include them in this derivation, we can link to them.
|
||||
postInstall = pkgs.lib.optionals full ''
|
||||
makeWrapper ${xP}/lib/xP/xP $out/bin/xP --chdir ${xP}/share/xP/public
|
||||
|
Loading…
Reference in New Issue
Block a user