feat: rewrite to more nixy flakes
This commit is contained in:
@@ -1,21 +1,18 @@
|
||||
{
|
||||
pkgs ? import <nixpkgs> { },
|
||||
...
|
||||
}:
|
||||
{ stdenv, fetchurl, ... }:
|
||||
|
||||
let
|
||||
src = pkgs.fetchurl {
|
||||
src = fetchurl {
|
||||
url = "https://you.have.fail/tetrioplus/data/tpsefiles/skin/SpooKoArts/simple_connected.zip.tpse";
|
||||
hash = "sha256-dIrEpEV9Gy2iU6K6rMrNX4XFQEchkJqSmOuQwVF4EQQ=";
|
||||
};
|
||||
in
|
||||
pkgs.stdenv.mkDerivation {
|
||||
stdenv.mkDerivation {
|
||||
name = "simple-connected";
|
||||
version = "2022-06-26";
|
||||
inherit src;
|
||||
|
||||
dontUnpack = true;
|
||||
dontBuild = true;
|
||||
dontUnpack = true;
|
||||
dontBuild = true;
|
||||
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
@@ -23,9 +20,9 @@ pkgs.stdenv.mkDerivation {
|
||||
runHook postInstall
|
||||
'';
|
||||
|
||||
fixupPhase = ''
|
||||
runHook preFixup
|
||||
sed -i 's/\bskin\b/value/' $out
|
||||
runHook postFixup
|
||||
'';
|
||||
fixupPhase = ''
|
||||
runHook preFixup
|
||||
sed -i 's/\bskin\b/value/' $out
|
||||
runHook postFixup
|
||||
'';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user