2022-12-17 10:02:37 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
2022-01-13 20:06:32 +00:00
|
|
|
, fetchFromGitHub
|
|
|
|
, rustPlatform
|
2023-07-15 17:15:38 +00:00
|
|
|
, cargo
|
2022-01-13 20:06:32 +00:00
|
|
|
, glib
|
2022-12-17 10:02:37 +00:00
|
|
|
, pkg-config
|
2023-07-15 17:15:38 +00:00
|
|
|
, rustc
|
|
|
|
, wrapGAppsHook
|
2022-01-13 20:06:32 +00:00
|
|
|
, gdk-pixbuf
|
|
|
|
, gtk3
|
|
|
|
}:
|
|
|
|
|
2022-12-17 10:02:37 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2022-01-13 20:06:32 +00:00
|
|
|
pname = "popsicle";
|
2023-07-15 17:15:38 +00:00
|
|
|
version = "1.3.2";
|
2022-01-13 20:06:32 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "pop-os";
|
2023-07-15 17:15:38 +00:00
|
|
|
repo = "popsicle";
|
2022-12-17 10:02:37 +00:00
|
|
|
rev = version;
|
2023-07-15 17:15:38 +00:00
|
|
|
hash = "sha256-2RkptzUX0G17HJMTHVqjbRHIIc8+NcSRUvE+S9nmtLs=";
|
2022-01-13 20:06:32 +00:00
|
|
|
};
|
|
|
|
|
2023-03-27 19:17:25 +00:00
|
|
|
cargoDeps = rustPlatform.importCargoLock {
|
|
|
|
lockFile = ./Cargo.lock;
|
|
|
|
outputHashes = {
|
|
|
|
"dbus-udisks2-0.3.0" = "sha256-VtwUUXVPyqvcOtphBH42CkRmW5jI+br9oDJ9wY40hsE=";
|
2023-07-15 17:15:38 +00:00
|
|
|
"iso9660-0.1.1" = "sha256-amegb0ULjYHGTHJoyXlqkyhky10JjmoR1iR4grKzyHY=";
|
2023-03-27 19:17:25 +00:00
|
|
|
};
|
2022-12-17 10:02:37 +00:00
|
|
|
};
|
2022-01-13 20:06:32 +00:00
|
|
|
|
2022-12-17 10:02:37 +00:00
|
|
|
nativeBuildInputs = [
|
2023-07-15 17:15:38 +00:00
|
|
|
cargo
|
2022-12-17 10:02:37 +00:00
|
|
|
glib
|
|
|
|
pkg-config
|
2023-07-15 17:15:38 +00:00
|
|
|
rustPlatform.bindgenHook
|
2022-12-17 10:02:37 +00:00
|
|
|
rustPlatform.cargoSetupHook
|
2023-05-24 13:37:59 +00:00
|
|
|
rustc
|
2022-12-17 10:02:37 +00:00
|
|
|
wrapGAppsHook
|
|
|
|
];
|
2022-01-13 20:06:32 +00:00
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
gdk-pixbuf
|
2022-12-17 10:02:37 +00:00
|
|
|
gtk3
|
2022-01-13 20:06:32 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
makeFlags = [
|
2022-12-17 10:02:37 +00:00
|
|
|
"prefix=$(out)"
|
2022-01-13 20:06:32 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Multiple USB File Flasher";
|
|
|
|
homepage = "https://github.com/pop-os/popsicle";
|
2022-12-17 10:02:37 +00:00
|
|
|
changelog = "https://github.com/pop-os/popsicle/releases/tag/${version}";
|
|
|
|
maintainers = with maintainers; [ _13r0ck figsoda ];
|
2022-01-13 20:06:32 +00:00
|
|
|
license = licenses.mit;
|
2022-12-17 10:02:37 +00:00
|
|
|
platforms = platforms.linux;
|
2022-01-13 20:06:32 +00:00
|
|
|
};
|
|
|
|
}
|