Skip to content

Commit

Permalink
fragments: 2.1.1 -> 3.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
linsui authored and linsui committed Apr 23, 2024
1 parent 5fdc6c6 commit 1fa40fa
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 21 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
{ lib
, stdenv
, fetchFromGitLab
, fetchpatch
, appstream-glib
, cargo
, dbus
Expand All @@ -17,36 +16,26 @@
, rustPlatform
, rustc
, sqlite
, transmission
, transmission_4
, wrapGAppsHook4
}:

let
patchedTransmission = transmission.overrideAttrs (oldAttrs: {
patches = (oldAttrs.patches or []) ++ [
(fetchpatch {
url = "https://raw.githubusercontent.com/flathub/de.haeckerfelix.Fragments/2aee477c8e26a24570f8dbbdbd1c49e017ae32eb/transmission_pdeathsig.patch";
sha256 = "sha256-/rCoA566tMmzqcIfffC082Y56TwEyyQJ0knxymtscbA=";
})
];
});
in stdenv.mkDerivation rec {
stdenv.mkDerivation rec {
pname = "fragments";
version = "2.1.1";
version = "3.0.0";

src = fetchFromGitLab {
domain = "gitlab.gnome.org";
owner = "World";
repo = "Fragments";
rev = version;
sha256 = "sha256-tZcVw4rxmNPcKKgyRB+alEktktZfKK+7FYUVAAGA9bw=";
hash = "sha256-HtulyB1XYBsA595ghJN0EmyJT7DjGUbtJKaMGM3f0I8=";
};

patches = [];
cargoDeps = rustPlatform.fetchCargoTarball {
inherit src patches;
inherit src;
name = "${pname}-${version}";
hash = "sha256-nqVaYnL3jKGBsAsakIkgwksjH4yuMhwCQe0zq3jgjnA=";
hash = "sha256-EUE+Qc+MqsKPqHMYJflZQ6zm3ErW+KLuJq/7HEBf8VM=";
};

nativeBuildInputs = [
Expand All @@ -71,9 +60,9 @@ in stdenv.mkDerivation rec {
sqlite
];

preFixup = ''
preFixup = ''
gappsWrapperArgs+=(
--prefix PATH : "${lib.makeBinPath [ patchedTransmission ]}"
--prefix PATH : "${lib.makeBinPath [ transmission_4 ]}"
)
'';

Expand Down
2 changes: 0 additions & 2 deletions pkgs/top-level/all-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -31335,8 +31335,6 @@ with pkgs;

fractal = callPackage ../applications/networking/instant-messengers/fractal { };

fragments = callPackage ../applications/networking/p2p/fragments { };

freedv = callPackage ../applications/radio/freedv {
inherit (darwin.apple_sdk.frameworks) AppKit AVFoundation Cocoa CoreMedia;
codec2 = codec2.override {
Expand Down

0 comments on commit 1fa40fa

Please sign in to comment.