sxmo-utils: init at 1.13.0

thanks to noneucat for sharing their own packaging of sxmo on nix
This commit is contained in:
2023-05-16 07:08:04 +00:00
parent e0c2e8c149
commit 32dcfde7e9
2 changed files with 37 additions and 0 deletions

View File

@@ -0,0 +1,36 @@
{ stdenv
, fetchgit
, gitUpdater
, lib
}:
stdenv.mkDerivation rec {
pname = "sxmo-utils";
version = "1.13.0";
src = fetchgit {
url = "https://git.sr.ht/~mil/sxmo-utils";
rev = version;
hash = "sha256-HNkajPC/spozxRlaP0iMWvOAfriRjl2wo1wdcbVCrkU=";
};
postPatch = ''
sed -i 's@/usr/lib/udev/rules\.d@/etc/udev/rules.d@' Makefile
'';
installFlags = [
"OPENRC=0"
"DESTDIR=$(out)"
"PREFIX="
];
passthru.updateScript = gitUpdater { };
meta = {
homepage = "https://git.sr.ht/~mil/sxmo-utils";
description = "Contains the scripts and small C programs that glues the sxmo enviroment together";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ colinsane ];
platforms = lib.platforms.linux;
};
}

View File

@@ -24,6 +24,7 @@ let
sane-scripts = callPackage ./additional/sane-scripts { };
static-nix-shell = callPackage ./additional/static-nix-shell { };
sublime-music-mobile = callPackage ./additional/sublime-music-mobile { };
sxmo-utils = callPackage ./additional/sxmo-utils { };
tow-boot-pinephone = callPackage ./additional/tow-boot-pinephone { };
# packages i haven't used for a while, may or may not still work