2022-12-17 10:02:37 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
2022-01-13 20:06:32 +00:00
|
|
|
, fetchFromGitHub
|
2023-05-24 13:37:59 +00:00
|
|
|
, cargo
|
2022-01-13 20:06:32 +00:00
|
|
|
, rustPlatform
|
2023-05-24 13:37:59 +00:00
|
|
|
, rustc
|
2022-01-13 20:06:32 +00:00
|
|
|
, glib
|
2022-12-17 10:02:37 +00:00
|
|
|
, pkg-config
|
2022-01-13 20:06:32 +00:00
|
|
|
, gdk-pixbuf
|
|
|
|
, gtk3
|
2022-12-17 10:02:37 +00:00
|
|
|
, wrapGAppsHook
|
2022-01-13 20:06:32 +00:00
|
|
|
}:
|
|
|
|
|
2022-12-17 10:02:37 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2022-01-13 20:06:32 +00:00
|
|
|
pname = "popsicle";
|
2022-12-17 10:02:37 +00:00
|
|
|
version = "1.3.1";
|
2022-01-13 20:06:32 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "pop-os";
|
|
|
|
repo = pname;
|
2022-12-17 10:02:37 +00:00
|
|
|
rev = version;
|
|
|
|
sha256 = "sha256-NqzuZmVabQ5WHOlBEsJhL/5Yet3TMSuo/gofSabCjTY=";
|
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=";
|
|
|
|
"iso9660-0.1.0" = "sha256-A2C7DbtyJhOW+rjtAcO9YufQ5VjMfdypJAAmBlHpwn4=";
|
|
|
|
};
|
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 = [
|
|
|
|
glib
|
|
|
|
pkg-config
|
|
|
|
rustPlatform.cargoSetupHook
|
2023-05-24 13:37:59 +00:00
|
|
|
cargo
|
|
|
|
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
|
|
|
};
|
|
|
|
}
|