1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-17 19:21:04 +00:00

pupdate: 2.43.1 → 3.0.0, rename from pocket-updater-utility

This commit is contained in:
Philipp Rintz 2024-01-24 22:20:33 +01:00
parent 17696cd06f
commit 3bb249f858
5 changed files with 28 additions and 29 deletions

View file

@ -1,19 +1,19 @@
From c9ca58262045b82537bd8284d426c91582cc7ed7 Mon Sep 17 00:00:00 2001
From f56083d95304752c45cc569fe42c3b0d7a2430bd Mon Sep 17 00:00:00 2001
From: Philipp Rintz <git@rintz.net>
Date: Thu, 28 Sep 2023 21:22:18 +0200
Date: Wed, 24 Jan 2024 22:11:50 +0100
Subject: [PATCH] uncommited
---
pocket_updater.csproj | 1 +
pupdate.csproj | 1 +
1 file changed, 1 insertion(+)
diff --git a/pocket_updater.csproj b/pocket_updater.csproj
index 30f77d5..ad6bf69 100644
--- a/pocket_updater.csproj
+++ b/pocket_updater.csproj
diff --git a/pupdate.csproj b/pupdate.csproj
index a6f59a8..0563137 100644
--- a/pupdate.csproj
+++ b/pupdate.csproj
@@ -12,6 +12,7 @@
<Authors>Matt Pannella</Authors>
<Product>Analogue Pocket Updater Utility</Product>
<Product>Pupdate</Product>
<RepositoryUrl>https://github.com/mattpannella/pocket-updater-utility</RepositoryUrl>
+ <RuntimeIdentifier>@RuntimeIdentifier@</RuntimeIdentifier>
</PropertyGroup>

View file

@ -1,24 +1,24 @@
{ pkgs ? import <nixpkgs> { system = builtins.currentSystem; }
, stdenv ? pkgs.stdenv
, lib ? pkgs.lib
, fetchFromGitHub ? pkgs.fetchFromGitHub
, buildDotnetModule ? pkgs.buildDotnetModule
, dotnetCorePackages ? pkgs.dotnetCorePackages
, openssl ? pkgs.openssl
, zlib ? pkgs.zlib
, hostPlatform ? stdenv.hostPlatform
, nix-update-script ? stdenv.nix-update-script
{ pkgs
, stdenv
, lib
, fetchFromGitHub
, buildDotnetModule
, dotnetCorePackages
, openssl
, zlib
, hostPlatform
, nix-update-script
}:
buildDotnetModule rec {
pname = "pocket-updater-utility";
version = "2.43.1";
pname = "pupdate";
version = "3.0.0";
src = fetchFromGitHub {
owner = "mattpannella";
repo = "${pname}";
rev = "${version}";
hash = "sha256-ur7BEsG4MIEcdiRt5BkK4GCa7aVkrh2Djd10KhaWf3U=";
hash = "sha256-Lr3orYOSzFQCLduBhp2MtGbgiKtFB1CgP/iMMySSvEk=";
};
buildInputs = [
@ -30,17 +30,17 @@ buildDotnetModule rec {
# See https://github.com/NixOS/nixpkgs/pull/196648/commits/0fb17c04fe34ac45247d35a1e4e0521652d9c494
patches = [ ./add-runtime-identifier.patch ];
postPatch = ''
substituteInPlace pocket_updater.csproj \
substituteInPlace pupdate.csproj \
--replace @RuntimeIdentifier@ "${dotnetCorePackages.systemToDotnetRid hostPlatform.system}"
'';
projectFile = "pocket_updater.csproj";
projectFile = "pupdate.csproj";
nugetDeps = ./deps.nix;
selfContainedBuild = true;
executables = [ "pocket_updater" ];
executables = [ "pupdate" ];
dotnetFlags = [
"-p:PackageRuntime=${dotnetCorePackages.systemToDotnetRid stdenv.hostPlatform.system}"
@ -54,11 +54,11 @@ buildDotnetModule rec {
};
meta = with lib; {
homepage = "https://github.com/mattpannella/pocket-updater-utility";
description = "Analogue Pocket Updater Utility";
homepage = "https://github.com/mattpannella/pupdate";
description = "Pupdate - A thing for updating your Analogue Pocket ";
license = licenses.mit;
platforms = platforms.linux;
maintainers = with maintainers; [ p-rintz ];
mainProgram = "pocket_updater";
mainProgram = "pupdate";
};
}

View file

@ -831,6 +831,7 @@ mapAliases ({
pinentry_qt = throw "'pinentry_qt' has been renamed to/replaced by 'pinentry-qt'"; # Converted to throw 2023-09-10
pinentry_qt5 = pinentry-qt; # Added 2020-02-11
PlistCpp = plistcpp; # Added 2024-01-05
pocket-updater-utility = pupdate; # Added 2024-01-25
poetry2nix = throw "poetry2nix is now maintained out-of-tree. Please use https://github.com/nix-community/poetry2nix/"; # Added 2023-10-26
prayer = throw "prayer has been removed from nixpkgs"; # Added 2023-11-09
privacyidea = throw "privacyidea has been removed from nixpkgs"; # Added 2023-10-31

View file

@ -2011,8 +2011,6 @@ with pkgs;
pferd = callPackage ../tools/misc/pferd { };
pocket-updater-utility = callPackage ../tools/games/pocket-updater-utility { };
polygon-cli = callPackage ../tools/networking/polygon-cli { };
pricehist = python3Packages.callPackage ../tools/misc/pricehist { };