Files
nixpkgs/pkgs/by-name/ub/ubports-pdk/package.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

70 lines
1.5 KiB
Nix

{
stdenvNoCC,
lib,
fetchFromGitHub,
unstableGitUpdater,
bash,
coreutils,
dosfstools,
makeWrapper,
mtools,
wget,
which,
xz,
}:
stdenvNoCC.mkDerivation (finalAttrs: {
pname = "ubports-pdk";
version = "0-unstable-2025-06-23";
src = fetchFromGitHub {
owner = "ubports";
repo = "ubports-pdk";
rev = "f97daec1a96f9427b23e35c8cc12e7c21fe893fd";
hash = "sha256-s9GC5TiIQSn5JGRy3TU5COdbcW9cDZZ8eQpflSffyOw=";
};
strictDeps = true;
nativeBuildInputs = [ makeWrapper ];
buildInputs = [
bash
coreutils
dosfstools
mtools
wget
which
xz
];
dontBuild = true;
installPhase = ''
runHook preInstall
mkdir -p $out/bin
install -Dm755 ubuntu-touch-pdk $out/share/ubuntu-touch-pdk/ubuntu-touch-pdk
cp -R scripts $out/share/ubuntu-touch-pdk/
makeWrapper $out/share/ubuntu-touch-pdk/ubuntu-touch-pdk $out/bin/ubuntu-touch-pdk \
--prefix PATH : ${lib.makeBinPath finalAttrs.finalPackage.buildInputs}
runHook postInstall
'';
passthru.updateScript = unstableGitUpdater { };
meta = {
description = "Platform Development Kit for Ubuntu Touch";
homepage = "https://github.com/ubports/ubports-pdk";
license = lib.licenses.gpl3Only;
mainProgram = "ubuntu-touch-pdk";
maintainers = with lib.maintainers; [ OPNA2608 ];
platforms = lib.platforms.unix;
# setup wants to use brew to install extra prerequisites
broken = stdenvNoCC.hostPlatform.isDarwin;
};
})