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